The CreatorCon Call for Content is officially open! Get started here.

Get default value of a selectbox variable using sys_id

prabhmeet
Giga Expert

Hi,

I have a lookup selectbox variable 'Type'  in my catalog item. It is looking up values of a field from a table. Suppose it has two values 'one'  and 'two'.

I want that on RITM and Catalog task forms the variable's default value should be 'two'. 

So in the default value tab In the 'Type' variable, I have used the sys_id of  'two'. But this is not working.

find_real_file.png

Please help!

Thanks

1 ACCEPTED SOLUTION

Thanks rad, there was some script working in the workflow due to which the default value was being overidden, I have corrected it.

View solution in original post

7 REPLIES 7

rad2
Mega Sage

In the Variable form of Type, In Type Specifications set

Lookup value field - as Sys ID

Lookup label field(s) - to display name

Ex- 

find_real_file.png

 

In Default Value, give the sys id as you have mentioned earlier

 

Hope this helps!

I have done exactly this what you are saying, the table name, field and sys_id but it is not working.

Do you have any idea why?

 

Deselected the checkbox - include None?

What is displayed in the dropdown ?

Hi rad,

 the two values are coming up - 'one' and 'two' with 'one' as default.