The Now Platform® Washington DC release is live. Watch now!

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

auto ticking checkbox on a certain condition

saprem_d
Giga Guru

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

7 REPLIES 7

lokesho
Kilo Explorer

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);
}

}


Hi All,

Use UI Policies rather than Client Scripts.
See the attachments for details if it solved your requirements let me know.


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


saprem_d
Giga Guru

Hi Lokesh,

i have also tried this method but unfortunately it doesn't work 😞