Client scripts installed with catalog item designer The catalog item designer adds the following client scripts. Script Table Description Get next order number Approval [sc_ic_aprvl_defn_staging] Populates the order field by adding 100 to the biggest order on an approval definition defined against the item. Get Approval Type Description Approval [sc_ic_aprvl_defn_staging] sc_ic_aprvl_defn_design Displays or hides the approval type description on change of the predefined field value. Reload when an image is deleted true Item [sc_ic_item_staging] Reloads the Item designer form when a Desktop or Mobile image is deleted and sets the record back to state Draft if it has been Published. Process Dialog action Item [sc_ic_item_staging] Prompts to make a decision about keeping the modifications to the item before completing the selected action which will cause an update. Performs the prompt if the state of the item is set to Published and there are unsaved changes to the item record. Dialog functions Item [sc_ic_item_staging] Defines available dialog functions for actions such as display, process and refresh. Force update of Column dropdown Question [sc_ic_question] Updates the Section drop-down values on load of the Question dialog box. Mandatory checked Question [sc_ic_question] Ensures read only is not true if the question is mandatory. Read only checked Question [sc_ic_question] Ensures mandatory is not true if the question is read only. Populate meta fields ["Type" changed] Question [sc_ic_question] Populates the meta field values on change of Type on the Add Question form. Populate meta fields ["Option" changed] Question [sc_ic_question] Populates the meta field values on change of Option on the Add Question form. Get Question Type Description Question [sc_ic_question] Displays the Question type description on change of the Option field value for the following Types: Multi Line Text, Multiple Choice, Reference. Update Order on Section change Question [sc_ic_question] Updates the Order value on the question record to the next question order number available for a selected Section on change. Hide Question Type Choices related list Question Type [sc_ic_question_type] Controls the visibility of Question Type Choice related list for questions of type Select Box and Multiple Choice. Adjust position for display Section [sc_ic_section] Adjusts the position value on a section record to determine the correct display order. Validate and adjust Position Section [sc_ic_section] Validates that the position on a section record value is greater than 0 and displays a field message if not. Get next position Section [sc_ic_section] Populates the position field by adding 1 to the biggest position number on a section defined against the item. Get next order number Task [sc_ic_task_defn_staging] Populates the order field by adding 100 to the biggest order on an approval definition defined against the item.