Client Script

Is a client side script that are executed by predefined event triggers in the client browser.
Client script executes in edit mode.
Use client scripts to configure forms, form fields, and field values while the user is using the form.

Client Scripts can :

  • make fields hidden or visible
  • make fields read only or writable
  • make fields optional or mandatory based on the user’s role
  • set the value in one field based on the value in other fields
  • modify the options in a choice list based on a user’s role
  • display messages based on a value in a field

Where Client Script runs :
With the exception of onCellEdit() client scripts, client scripts only apply to forms and search pages. If you create a client script to control field values on a form, you must use one of these other methods to control field values when on a list.

  • Create an access control to restrict who can edit field values.
  • Create a business rule to validate content.
  • Create a data policy to validate content.
  • Create an onCellEdit() client script to validate content.
  • Disable list editing for the table.

Client Script Types :

  • Loaded
  • Changed
  • Submitted

Thank you.

Leave a comment

Your email address will not be published. Required fields are marked *