- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2020 02:41 PM
Hi, I created a variable set used on 3 Catalog Item forms that has 3 lookup select box variables that pulls in the information from the Category, Subcategory, and Components from the Incident table. I have been asked to autopopulate on 1 of the forms the category and subcategory with a default value. So in a client script I created an onLoad script that will populate those fields.
On the component field, the user will select the component that fits their request.
This is how my Type Specifications are set for the Component field.
And I have the variable attributes req_qual_elements set to subcategory
The problem is that when the form loads, it populates the category and subcategory fields as it should, but the component fields does not display the list based on the filter of that field.
If I manually change the subcategory field, then the list drops down.
Does anyone know what is causing this or how to fix it? Would it be better to set these up using a script include?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2020 06:48 AM
No problem. I think the onLoad does not trigger the Advanced reference qualifier to recalculate.
You have 2 options:
- Duplicate the variables and use the duplicates with default value for this form.
Or
- Create a Script include that returns the Reference qualifier based on the subcategory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2020 06:48 AM
No problem. I think the onLoad does not trigger the Advanced reference qualifier to recalculate.
You have 2 options:
- Duplicate the variables and use the duplicates with default value for this form.
Or
- Create a Script include that returns the Reference qualifier based on the subcategory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2020 08:04 AM
Thank you! I think the script include may be my option. I will let you know how it goes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2020 12:39 PM
The script include did in fact work. I just have another issue that I submitted a new question for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2020 12:40 PM
I would have used duplicate variables, but it becomes a problem in reporting.