what g_form.getControl('fieldname')&g_form.getValue(variables.fieldname) can do?

chenyanwei
Giga Contributor

the fieldname are both reference type in catalog item .

g_form.getControl('fieldname') returned a:

キャプ�ャ.PNG

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')?

6 REPLIES 6

instead you can try like, for example:



if(approver_name != null || approver_name != '')


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.