Hi,
I Have Three Radio Button , When I Click one Radio Button. it Will Stored in Data. How?
Hi @Ahamed Zuhail ,
You need to create one variable to hold the selected value.
Please check this
Hi @Ahamed Zuhail
You have to define a variable for the radio button group. For each seperate radiobutton, you have to define a value. That value can come from a static entity, or any value you want.
When the user clicks on 1 of the radio buttons, the variable is filled with the value defined on that radiobutton.
In the action to save, you can use the variable to save it in the db.
Best regards, Marlies
Hi @Ahamed Zuhail it's just the simple approach create a variable of type int and set that variable to that radio button group and then paas your values to each and every radio button like 1,2,3 and then you can store the value using that variable by an action on the submit button or an action on change of that radiobutton group. (to store the selected value just use that variable in your logic that you have bind to that radio button)
i hope this will help. thanks
In Reactive Web and Mobile
Follow the steps to create a form with three options.
Create a new Screen.
Right-click the Screen in the widget tree and select Add Local Variable. Enter Color in the Name field. Service Studio sets the Data Type to Color.
Search for Form in the toolbox and drag it to Screen.
Search for Radio Group and drag it into the Form. Then:
Set the properties of Radio Buttons, which are the widgets inside the Radio Group widget.
Drag an Expression widget below the Form and enter "You selected " + Color.Color + " color.".
Publish the app and try it out in your browser.
Button Group
You can also use Button Group in Reactive Web and Mobile:
In Traditional Web
To use Radio Buttons in Traditional Web:
Thanks Sharma,
But i want to stored the data in the DB
Please go through the shared Youtube link below, will guide you to store data into DB
https://www.youtube.com/watch?v=wRAxNmRaLPo&ab_channel=OutSystemsHow-Tos
Thanks
Himani
You can let users select a single option from a group of choices using radio buttons.
You can go through the shared youtube link, If required
@Himani Sharma Hi.
I don't see there is an option called radio group widget in the SERVICE STUDIO 11 toolbox. Instead of that, there is radio button, Button Group, Button Group Items widgets alone there.
I have used Traditional Web option to do this and I have entered the data in excel and imported the entity from excel, for that values are displaying, but if I manually enter the values, it's showing values for First Name, Last Name, E-Mail, Image(sometimes if I click a new image, the same images alone coming which came for previous records and unable to get the values for Gender(using radio button) and City(Combo Box). Kindly assist me
Hi @Ahamed Zuhail,
You can refer the attached OML.
Hope this works for you!