- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 05:52 AM
I need a variable preset to a particular choice for only one catalog item.
The variable is apart of a variable set that is on multiple catalog items and I don't want any changes to them only the one catalog item. Which is Classification > UnClass. It should be set by default every time a user opens the catalog. They should see that data prepopulated.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2022 03:57 AM
You can not populate the values using the UI Policies, the answer that you have marked correct does not relate to the question you have asked.
You would need to create a onLoad catalog client script on that particular catalog item and populate the classification variable with the desired choice.
Please mark reply as Correct/Helpful Thanks!
Regards,
Deepankar Mathur

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 05:57 AM
Hi Andre,
You can create a onLoad catalog client script on that particular catalog item and populate the classification variable with the desired choice.
Regard,
Deepankar Mathur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 10:04 AM
I tried this script but it didn't work.
g_form.setValue('dia_u_classisfication', 'UNCLASSIFIED’);
g_form.setReadOnly('dia_u_classification', true);
Can you direct me to what I did wrong?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 12:39 PM
Hi Andre,
What issue are you facing with this script? Can you recheck the backend value of this choice.
Regards,
Deepankar Mathur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 06:03 AM
Agree with Deepankar.
Or use the Type Specifications of the Cat Item variable and build the appropriate filter.
Or set the default value in the Cat Item variable.
If using the onLoad script you could also set the var field to read only.
hth,matt