Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I am having a problem with the script below. It executes fine when there are no data entry errors. I have set Error Capture Off to allow FileMaker to detect fields that were defined to have a required value. After I enter the data (leaving a field blank) and click "Continue" it presents the standard FileMaker "Revert Record Yes/No" message and pauses. When I select "No" it places the cursor in the empty field. After entering the data and clicking "Continue" it does not return me to the script to enter the department. How can I return to the script to complete it?? Thanks for any assistance.

Create New Participant Record

#Setting "Allow User Abort" to Off removes the cancel button when a script pauses.

Allow User Abort [ Off ]

#Set "Set Error Capture" Off

Set Error Capture [ Off ]

#Select layout for new participant record

Go to Layout [ “Participant Form New Registration Part-1” (Web_TA_Participant_DB) ]

Enter Browse Mode

New Record/Request

#Set Department field to "Select Department"

Set Field [ Web_TA_Participant_DB::Department; "Select Department" ]

#Enter the participants demographic data with the exception of the department.

Pause/Resume Script [ Indefinitely ]

#Select department for new Participant record

Go to Layout [ “Participant Form New Registration Part-2” (Web_TA_Participant_DB) ]

Pause/Resume Script [ Indefinitely ]

Go to Layout [ “Participant Form” (Web_TA_Participant_DB) ]

Enter Browse Mode

Show All Records

Adjust Window

[ Resize to Fit ]

The field validation options are a bit of a blunt instrument and, whilst they always do what they say on the tin, they don't always give you the desired result, especially if they interrupt the smooth running of a script.

If the only way your users can enter data in these fields is by calling your script, I'd suggest DISABLING the field validations and doing the same validation in the script.

A good method is:

Loop

Go to field [x]

pause/resume script

exit loop if [x ≠ "" and length (x) > 7 //or whatever]

display dialog "Field x must be at least 7 characters long'

end loop

Hope that helps.

James

  • Author

Hi James, many thanks for your suggestion and sample scripting. The field validation is also used in my XSLT web pages and works OK. I will look into disabling field validation (which I never really liked to begin with) and using your suggested scripting for both the network users and the web users.

When completed, I will report back with the details........Ray

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.