- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2020 02:16 AM
Hey Guys,
I have a requirement , Where i have to field == Desk phone.
When Desk phone is selected , 2 radio buttons should be appear. A and B.
When A is selected , it will have C and D under it.
How to achieve this??
Please suggest.
Thank you
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2020 09:08 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2020 06:30 AM
How about aligning radio buttons horizontally and dynamically displaying 2nd tier radio buttons based on the first tier?
Choice 1 selected
--------------------------------------------------
Choice 2 selected
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
switch (newValue) {
case 'choice_1':
g_form.setDisplay('radio_button2_1', true);
g_form.setDisplay('radio_button2_2', false);
g_form.setDisplay('radio_button2_3', false);
break;
case 'choice_2':
g_form.setDisplay('radio_button2_1', false);
g_form.setDisplay('radio_button2_2', true);
g_form.setDisplay('radio_button2_3', false);
break;
case 'choice_3':
g_form.setDisplay('radio_button2_1', false);
g_form.setDisplay('radio_button2_2', false);
g_form.setDisplay('radio_button2_3', true);
break;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2020 06:38 AM
Hi Hozawa,
Thank u so much for this idea.
Can u plz suggest how can i add info msg or anything sort of msg when Radio 1 and choice 1 is selected..
Ex:- When New Hire is selected,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2020 07:14 AM
How about having defining set of labels under the 2nd tier radio button and doing setDisplay() on these labels based on selection.
e.g.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
switch (newValue) {
case 'radio_button2_1_choice1':
g_form.setDisplay('message1', true);
g_form.setDisplay('message2', false);
break;
case 'radio_button2_1_choice2':
g_form.setDisplay('message1', false);
g_form.setDisplay('message2', true);
break;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2020 07:47 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2020 08:30 AM
onChange on variable "Option"
switch(newValue){