155
Views
6
Comments
Solved
Use radio button to navigate to a different screen
Question

Hey guys

I am struggling to get a logic on how to navigate from one screen to another using RADIO BUTTONS...please help peeps.

2018-12-17 04-50-28
Manish Pandey
Solution

Hi Siseko,

In radio button we have "on change" event here you can set any action as a destination, and inside this action you can add any screen as a destination.


There are other ways too to achieve this feature. 


Thanks,

Manish


2024-06-19 07-19-32
JitendraYadav

siseko thethi wrote:

Hey guys

I am struggling to get a logic on how to navigate from one screen to another using RADIO BUTTONS...please help peeps.

Hi,


Use OnClick event like

document.location.href='somepage.htm'


Or

use javascript function using onclick event and call below line.


window.open('https://www.google.com','_self');


Thanks.


2019-09-24 18-41-25
Jorge Martins
 
MVP

Hi Siseko Thethi,

Although there are ways of doing this (namely with an OnChange event handler that Manish mentions), I'd argue that doesn't seem to be good UI... users aren't expecting to be sent to another screen when they select a radio button. Can you elaborate on your requirements and what you are trying to achieve? Maybe we can point you to other widgets/patterns that would provide a better user experience for your scenario.

UserImage.jpg
Haoran Chen

Hi Jorge, 

I also have a same scenario as OP's. I need to let a radio button to navigate to different sections/widgets within one screen. How could I achieve this goal?

Thanks,

2018-11-21 17-31-38
Priya Khade

Hi,

Check the attached sample oml for reference.

Hope this helps you!

RadioButtonSample.oml
2024-06-18 11-24-32
Siseko Thethi

Hello

I managed to get it right peeps,I used onChange event handler.

Thank you very much!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.