T
|
Tim 9/15/2017 |
I'm not sure, but as a quick test, have you tried this.getValue() == '1' instead of == 'on'? |
I
|
i.NoLim author 9/15/2017 |
I'm not sure, but as a quick test, have you tried this.getValue() == '1' instead of == 'on'?
|
![]() |
romaldus 9/15/2017 |
Your code: ctrlSAME_AS_ABOVE('change', function(e)
|
![]() |
romaldus 9/15/2017 |
|
I
|
i.NoLim author 9/15/2017 |
var ctrlSAME_AS_ABOVE = Runner.getControl(pageid, 'SAME_AS_ABOVE'); |
![]() |
jadachDevClub member 9/15/2017 |
First, make your EMERGENCY_LAST_NAME and EMERGENCY_FIRST_NAME required in the field properties. var ctrlSAME_AS_ABOVE = Runner.getControl(pageid, 'SAME_AS_ABOVE');
if (values["SAME_AS_ABOVE"] == "1")
|
I
|
i.NoLim author 9/15/2017 |
First, make your EMERGENCY_LAST_NAME and EMERGENCY_FIRST_NAME required in the field properties. Then do this: On your add page javascript onload event use: var ctrlSAME_AS_ABOVE = Runner.getControl(pageid, 'SAME_AS_ABOVE');
if (values["SAME_AS_ABOVE"] == "1")
|
![]() |
jadachDevClub member 9/16/2017 |
Thank you for your response. I haven't tried it yet but I understand what you did. There is another field, EMERGENCY_PHONE_NUMBER, that I didn't include in my question because I thought it would just follow the same code as EMERGENCY_LAST_NAME and EMERGENCY_FIRST_NAME. There are times when the names will be the same but a different phone number will be given. If I use the solution you provided the user will not be able to edit the phone number because it would be hidden. I guess I can just leave EMERGENCY_PHONE_NUMBER visible and not write on that field in the "Before Record Added" event.
var ctrlSAME_AS_ABOVE = Runner.getControl(pageid, 'SAME_AS_ABOVE'); |
I
|
i.NoLim author 9/18/2017 |
OK, then do this: var ctrlSAME_AS_ABOVE = Runner.getControl(pageid, 'SAME_AS_ABOVE');
|
C
|
chaintm 11/6/2017 |
hey all, var ctrlFieldc = Runner.getControl(pageid, 'checkbox');
var ctrlFieldc = Runner.getControl(pageid, 'checkbox'); |