Dynamic value in template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2019 11:54 PM
Hi All,
I am using HR document template. What we want to do is, if a value on field is xyz, then show text as ABC or else show DEF. Is this something we can achieve ?
Thanks
Surya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2019 01:02 AM
Hi surya,
You can do this using client script. You can write onChange client script,
var name_of_variable=g_form.getValue("Field_name");
if(name_of_variable=='xyz')
{
g_form.setValue("Field_name","abc");
}
else
{
g_form.setValue("Field_name","def");
}
you can do this through script with the help of template it is not possible.
Mark the answer as correct and helpful if it will help you in any manner.
Regards,
Akshata