The Now Platform® Washington DC release is live. Watch now!
07-01-2013 06:36 AM
Hi,
Can anyone suggest me a way to auto tick a checkbox on a certain condition selected in a drop down list.
Any comments would be a great help for me 🙂
thanks and regards,
Saprem Dixit
HCL technologies
07-01-2013 10:04 AM
Hi,
Please create a onchange client script for this.
below use the example:
Below script checkes the check box when the state changes to new.
test1 is the checkbox name
type: onChange
field name: state
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if(newValue==1)// is the value of state = new
{
test1 = g_form.getValue('u_test1');
g_form.setValue('u_test1',true);
}
else
{
g_form.setValue('u_test1',false);
}
}
07-02-2013 02:40 AM
07-02-2013 09:12 AM
Hi Mukesh,
This is not working for me..My requirement is below:
request type(drop down) contains 2 options say one and two.
there are 3 checkboxes say check1 check2 and check3.
Now on selecting one in request type, check1 and check2 should get autochecked while check3 remains unchecked.
on selecting two,all checkboxes remain unchecked.
I have used the UI policy referred by u but it is not running properly..
Please suggest me a way for my requirement.That would be great help 🙂
thanks,
Saprem
HCL Technologies
07-01-2013 11:50 AM
Hi Lokesh,
i have also tried this method but unfortunately it doesn't work 😞