How to fix it
- Navigate to
Service Catalog > Catalog Definitions > Maintain Itemsand open your catalog item. - Click the
Variablestab and identify variables that should be saving but aren't. - For each problematic variable, check the
Map to fieldcolumn. If empty, double-click the variable to open it. - In the variable record, scroll to the
Map to fieldfield and select the target table (usuallysc_req_itemfor RITM fields orsc_taskfor task fields). - Choose the specific field where you want the variable value saved (e.g.,
work_notes,short_description, or a custom field). - Verify the variable type matches the target field type. String variables work with most fields, but choice variables need choice fields, and date variables need date/datetime fields.
- Save the variable record and test by submitting a new catalog request.
- If variables still aren't saving, navigate to
Service Catalog > Catalog Definitions > Catalog Client Scriptsand filter by your catalog item. - Look for scripts with
Type = onSubmitand examine the script body for calls tog_form.setValue('variable_name', '')org_form.clearValue(). - Comment out or modify any script lines that clear your variables during submission.
- Check that variable sets are properly linked by going back to your catalog item and clicking the
Variable Setsrelated list. - Verify the variable set containing your problematic variables is listed with a valid
Ordervalue (typically 100, 200, 300, etc.). - Finally, open each problematic variable record and ensure the
Read onlycheckbox is not selected.
After making changes, test immediately with a new catalog request. Check the resulting RITM or task record to verify your variable values appear in the mapped fields. Use browser developer tools to inspect form submission if values still aren't saving.