I need a variable preset to a particular choice for only one catalog item.

Andre J
Tera Contributor

I need a variable preset to a particular choice for only one catalog item. find_real_file.png

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. 

 

1 ACCEPTED SOLUTION

@Andre J 

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

View solution in original post

8 REPLIES 8

dmathur09
Kilo Sage
Kilo Sage

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

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?

Hi Andre,

What issue are you facing with this script? Can you recheck the backend value of this choice.

Regards,

Deepankar Mathur

Matt102
Giga Guru

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