Skip 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.

Validation as scripts

Featured Replies

  • Newbies

I know that the custom validation error dialogs don't show up through IWP, so I've been using scripts to serve as field validations and modify a blank field (a global variable that I update via the scripts) to tell the user what the validation problems are.

Is there some way that I can "export" the validation conditions that I've set on the database as scripts, so that I could check them (and be able to give appropriate feedback) through IWP? Or would I need to create such validation scripts to account for IWP? It's one thing if we only have a handful of condition to check...a different matter if we have a lot.

I suppose it's possible to not bother setting the validation on the fields and do it all direct by scripting...

Any insight is appreciated. Thanks.

...and modify a blank field (a global variable that I update via the scripts)

Well, which is it, a field or a variable? Or do you meaqn that you place the contents of a variable into a field?

Is there some way that I can "export" the validation conditions that I've set on the database as scripts...

Hard to say what you mean by this, but you can certainly print the database definitions to PDF then cull out the validation conditions to get a document that summarizes conditions per field of a table.

If you're creating scripts to handle validation, that will help, but it won't do all the work for you, if that's what you were hoping.

I suppose it's possible to not bother setting the validation on the fields and do it all direct by scripting...

If you do that, I suggest you use a script that branches and posts a conventional custom dialog when running on a client workstation, but posts an alert to a global field (clearing it later) when running in IWP.

That way you have one main validation process (same checks, same error message text) that branches to deal with user feedback requirements in the two environments. :wink2:

  • Author
  • Newbies

Sorry, I guess I wasn't clear enough.

In my table, I have an extra field that is declared a global field. Using scripts, I'm writing things into that field for user feedback, which was basically what you suggested towards the end of your post. I was just wondering if there is an easier way, because I would be writing two copies of validation...one for the client, the other for the IWP.

Thanks for the confirmation though. It seems like I'm thinking down the right now.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.