Radio button default value based on user form field

Jahnavi7
Mega Contributor

Hi,

I have a requirement that

Created a Field type: Radio Buttons on Order guide
Options: a)IG

b)AG, SDG

Default value: In user  form I have a field called group If group is AG my default value should AG

if group is SDG or AG my default value should be AG,SDG

I don't know how to get user table data in default value .can anyone help me.

Thank you,

11 REPLIES 11

Ok, so here I have a radio button(numeric scale type variable), and here is how I read it

find_real_file.png

-Anurag

tq you for reply,

It is working for me on sc_task and sc_req_item.

but it isn't working on sc_cat_item (bcz we need to make default value in service portal)

The screenshot is for a catalog item only, not ritm or ctask.

I haven't tried from portal.

-Anurag

find_real_file.png

 This is the code I have written for default value on service portal

table: sc_cat_item

Type:Onload

AND 

Business Rule:

when:Display

g_scratchpad.operatinggroup = current.u_operating_groups.getDisplayValue();

find_real_file.png

But it is not working for me.

On line 4 you don't need to add variables.XXXX

just directly add the name of the variable.

Add alerts to see till where your code is getting executed and what values is it getting.

-Anurag