- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2024 12:14 AM
If I select any radio button then automatically single line text gwl_ or ll_ canlife _ should populate.
example
if gwl is selected then domain name is refelected gwl_
if ll is selected then domain name is refelected ll_
if canlife is selected then domain name is refelected canlife_
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2024 06:17 AM
Hello @Mahesho11 ,
Create on onChange client script on select domain variable.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
g_form.setValue('domain_name','gwl_'); // Use this for setting the value when form is loading, choose the value for your default radio choice for me it is gwl.
return;
}
switch(g_form.getValue('select_domain')) {
case 'gwl':
g_form.setValue('domain_name','gwl_');
break;
case 'ii':
g_form.setValue('domain_name','ll_');
break;
case 'canlife':
g_form.setValue('domain_name','canlife_');
break;
}
}
Kindly mark the answer ✔️Correct or Helpful ✔️If it addresses your concern.
Regards,
Siddhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2024 06:17 AM
Hello @Mahesho11 ,
Create on onChange client script on select domain variable.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
g_form.setValue('domain_name','gwl_'); // Use this for setting the value when form is loading, choose the value for your default radio choice for me it is gwl.
return;
}
switch(g_form.getValue('select_domain')) {
case 'gwl':
g_form.setValue('domain_name','gwl_');
break;
case 'ii':
g_form.setValue('domain_name','ll_');
break;
case 'canlife':
g_form.setValue('domain_name','canlife_');
break;
}
}
Kindly mark the answer ✔️Correct or Helpful ✔️If it addresses your concern.
Regards,
Siddhesh