Catalog Build form Variable Fields blank on Submission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2025 01:18 PM
I'm working on building a request form through the catalog builder and trying to reference some basic user details from the sys_user table such as department, cost center and have these fields auto populate as read-only as the user submits their request. However after submission, the RITM shows the variables as blank even though they were populated correctly when submitting the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2025 01:54 PM
May be @Raymond Ortiz
You yourself would need a servicenow case 😅
Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket.
Regards,
Shivalika
My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194
My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2025 02:13 PM
- Problem: If the variable you're trying to auto-populate is a Lookup Select box, it might not work correctly.
- Solution: Change the field type to a Reference field.
- Example: If you're trying to auto-populate a department, make sure the department field is a reference field pointing to the sys_user_group table.
- Problem: Incorrect configuration in the Auto-Populate tab.
- Solution:
- Dependent Question: Ensure the correct variable is selected as the "Dependent Question".
- Walk Path: Select the correct path to the value you want to populate.
- Target Variable: Make sure the correct target variable is selected in the "Target Variable" field.
- Example: If you want to auto-populate the department based on the user, select the user variable as the "Dependent Question" and the department field as the "Target Variable".
- Problem:UI policies can hide the target variable, preventing it from being populated.
- Solution:
- Check UI Policies: Review any UI policies that might be affecting the visibility of the target variable.
- Adjust UI Policies: Modify the UI policies to ensure the target variable is visible when the dependent question is populated.
- Problem:If the dependent question has a default value, the auto-populate might not work on initial load.
- Solution:
- Remove Default Value: Try removing the default value from the dependent question and see if the auto-populate works.
- Use Catalog Client Script: If you need a default value, you might need to use a Catalog Client Script to populate the target variable after the dependent question is populated.
- Problem:If you're using a script to populate the fields, ensure the script is correctly configured and executed at the right time.
- Solution:
- Review Script: Check the script for any errors or logic issues.
- Adjust Script Execution: Make sure the script is executed after the dependent question is populated.
- Use g_form.setValue(): If you're using a script, use g_form.setValue() to set the value of the target variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2025 04:21 PM
I was able to get most of it resolved by referencing other tables. For example on cost center instead of sys_user using cmn_cost_center. But for title trying u_job_title instead still returns a blank variable on submission.