Client Script Type — onCellEdit()

  • Script runs when a particular field value on a list changes
  • Applies to all records selected
  • Select onCellEdit as Client Script Type

If you create a client-side script for fields on a form, an onCellEdit() Client Script can be used to
ensure data in those fields is similarly controlled in a list.

IMPORTANT

onCellEdit() scripts do not apply to List Widgets on homepages or dashboards.

Parameters automatically passed to an onCellEdit() Client Script:

  • syslDs — sys_id of the edited item(s).
  • table — the table name of the edited item(s).
  • oldValues — the old value of the edited cell(s).
  • newVaIue — the new value of the edited cell(s). Is the same for all edited items.
  • callback—a callback will continue the execution of other related cell edit scripts.

You must pass back either true or false in the callback function. If true is passed as a parameter, the
other scripts are executed or the change is committed if there are no more scripts. If false is passed
as a parameter, any further scripts are not executed and the change is not committed.

results matching ""

    No results matching ""