Set value of Type(Yes/No)

mdeepu433
Tera Contributor

Hi guyzz,

I have a variable :in_stock

Type:yes/no.

I want to autopopulate this feild on RITM variable editor but it is showing undefined

I have tried from workflow

Current .variables.in_stock='Yes'

AND from client script: g_form.setValue('variables.in_stock',Yes);

But no luck.

Please give your thoughts....

3 REPLIES 3

Shishir Srivast
Mega Sage

in client script can you have the yes in quotes.



g_form.setValue('variables.in_stock','Yes');



And have the Applies to Requested Items checkbox check


find_real_file.png


hi srivastava i need to set the value in workflow activity,


but it is showing an error like Yes is not definrd.


g_form.setValue('variables.in_stock','Yes'); this one also i have tried with quotes but not pushing the value in to feild..



Hi



If you try to set it in a workflow activity then its server side..
current.variables.in_stock = 'Yes' should do it