Set value of Type(Yes/No)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2018 07:48 PM
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....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2018 08:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2018 10:47 PM
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2018 11:30 PM
Hi
If you try to set it in a workflow activity then its server side..
current.variables.in_stock = 'Yes' should do it