Hi Community,I am beginner in outsystems and I have a requirement where I have a radio group and forms.
Form must be displayed according to the value selected in Radio Button.
Like if Manually is selected then the manually form must be displayed and if Upload is selected then Upload form must be displayed.
Can someone please help me in solving this I have even attached the .oml file below.
Regards,
Vin J.
Indeed it does.
I passed default values to UploadFile and Manually.
Then I put the referenced values in IF.
This should work fine for Best Practice.
If you like, I can give you the best answer.
Hi Vin j,You can use your radio button variable to display forms accordingly.Place the forms in if, put the if condition in "if" widget similar to RadioButton="Manual", then place your manual form in the true section and another in the false section.
The value of RadioButton1 and RadioButton2 should be a string that will be entered into RadioGroup1, not a text variable.
RadioButton1 should be "Enter Manually".
RadioButton2 should be "Upload" and so on.
And in the IF condition, specify the string that will go into RadioButton2, like RadioGroup <> "Upload".
Hi Masahiro Ohno ,
No, it is still not working when I select another radio button the form is not changing the form is dispalyed same.
Thank you
Sorry. It worked in my hand.
I'll send you a working one so you can check it out.
Hi Masahiro Ohno,
But passing the hardcoded value is it correct cause passing the hardcoded value is not the best practice is there any other way of doing it.
Thank you.
You can bind the RadioGroup to the boolean variable("IsManual") this time you just need to compare the boolean variable in the if widget.
Hi Vin J,
Please check the attached OML for your reference.
Thanks.