How to set default value of variable in catalog item.

Priya75
Tera Contributor

HI All,

I have a catalog item with variable( sub-state) and when we submit the catalog a new record is created on the hardware table. I have created a onload catalog catalog client script, which sets the value of sub-state to available. when i open this record in  the hardware table, the new choice is getting created rather than the old value being used. i have used the sys_is of the record in catalog script. .

11 REPLIES 11

Check all the choice values you have given correct or not.

Check catalog item sub-state variable question choices and hardware table sub-state choice names are same or not. Avoid spaces also.

Priya75
Tera Contributor

the values are populating from the sys_choice table. so its correct.. we have not created new choices for the variable..