I am trying to write a script that requires a re-authentication before allowing access to a record/ layout that is also IWP compatible. I found this works best by splitting the script into two parts:
part a, re-directs to a layout where users are prompted to input username & password;
part b, executed when user hits "submit" button on layout (grabs username and password and re-logs in using those values) then redirects to desired record/ layout.
I'm having an issue if the re-login fails. I'll get the error message: "The account name and password you entered does not match any for those in any Filemaker account." But, it still executes the next part of the script: "Go to Layout [LayoutName]." This is not the desired action.
Is there a way to capture the result of the relogin? Is there a better way to do this for IWP?
I essentially want users in IWP to re-authenticate prior to making changes to records.