Script for validating online forms

14-Apr-2016 20:01 by 8 Comments

Script for validating online forms

A different implementation, even one using a different data serialization format, that still follows the behaviors described below would still match this best practice.

script for validating online forms-27script for validating online forms-62script for validating online forms-32script for validating online forms-87

I suppose it isn't so bad when I think of it as a matrix instead: 1 function for creating pairs, 1 function with 3 variations for setting variables, and 1 function with the same 3 variations for retrieving values without setting variables. We discussed before whether the script parameter and script result versions of the #Assign functions should have a singular or plural name. However, these functions only return a single value, so only singular makes sense.

When the script Name To Parse parameter is empty, the function will use the current script name.

The Verify Variables Not Empty function returns True (1) if each of the parameters in name List has been assigned to a non-empty variable of the same name.

If there was an error detected, File Maker's error code is assigned to the $#Assign.error variable.

The #Get function returns a named value from a dictionary.

These functions are less fundamental to working with dictionary data structures than the core functions, but experience has demonstrated that this functionality can be indispensable in practical applications.

The #Assign Global function parses a dictionary into global variables.

The #Assign Global function returns True (1) if there was no error detected while assigning the values to variables, and returns False (0) otherwise.

If there was an error detected, File Maker's error code is assigned to the $#Assign Global.error variable.

One of the common methods for passing parameters to scripts is via name-value pair or dictionary, which can make code easier to read and understand.

This differs from many other languages which use ordinal parameters.

These functions are documented for backwards compatibility.