457 views

Description

When client script is used to make a field not mandatory, the field is instead made mandatory.

Steps to Reproduce

  1. Create a client script to make the Short Description field of a change request NOT mandatory.
    An example client script is attached to this article.
  2. Open a change request record.
    Note that the Short Description field does not appear to be mandatory.
  3. Clear the Short Description field and try to save the record.
    A warning is displayed stating that the short description is mandatory and the record cannot be saved. 

Workaround

Work around the issue by setting your script to use a boolean argument rather than a string:

Before: g_form.setMandatory(field, 'false')

After: g_form.setMandatory(field, false);


Related Problem: PRB706263

Seen In

Helsinki Patch 2

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-06-27 08:50:55
Published:2017-06-26