what g_form.getControl('fieldname')&g_form.getValue(variables.fieldname) can do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2018 06:45 PM
the fieldname are both reference type in catalog item .
g_form.getControl('fieldname') returned a:
what dose this mean? and what does it can do?
and g_form.getValue(variables.fieldname) did not return anything when I alert it, why not just use g_form.getValue('fieldname')?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2018 09:24 PM
instead you can try like, for example:
if(approver_name != null || approver_name != '')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2018 09:21 PM
Chen - if getcontrol gives you the html output and getValue gives you field value then if you assign these to some variable then how will you get Boolean as output .
So as rules of law states what is assigned is what you get.