How is your experience with the OutSystems Community?
28
Views
4
Comments
radio button selection and remove option in  a list

Hi All,

PFA,

First time manadatory country selection so user should be flexible to choose.

1.On select country option I want to disable the all the earlier selection with selected one as it is.

2.The radio option which is selected earlier should be disabled for 2nd row and other option should be enabled.

3.If Remove the option second time and remove all states from first selection then again radio buttons should be enabled.

PFA


CountryStateseditable33.oml
UserImage.jpg
Preeti zade

Hello All,

Can anyone check for the below suggestion,

On select country second row onward I wanted to disable all the radio buttons of earlier section(row1) with selected country as checked disabled.

2.On second row radio button selection ,wanted to enable only the radios whichich are not selected in row1.

3.This will be applicable to all rows on select ountry,Previous section disabled with selected one as well disabled.

4.If remove the states and remove radio selection going back then first row radio button section to be enabled again.

5.Please check the destination screen and suggest how can I parse the structure to show tab based access(Ex,Country and states condition to show tabs).

Regards


2025-02-20 04-52-48
Ajay P

Hi @Preeti zade

I reviewed the logic in the AddMoreOnClick screen action and noticed that it currently disables all countries, regardless of the selected ones.

Please refine this behavior so that only the relevant countries are impacted based on the user’s selection. I believe this adjustment will help you achieve the intended functionality, as this is what I could infer from your requirement.



Regards,

Ajay

UserImage.jpg
Preeti zade

Hi Ajay,

I have made this change because I want to  disabled radios for first row radio sections 3 Countries ex.as states are added for the selected  country.Once click on select country ,first row radio section to be disabled .

2.From second row -On select country click,I am looking radio section -disable only the country which is selected in first section row,and and enable the other countries,

Regards


2025-07-22 10-30-27
Mandar Deshpande

Hi @Preeti zade ,

Based on your clarification, I think instead of maintaining the disabled state directly on each Radio Button, you can derive it from the selections already made in the previous rows.

For each country option in the current row:

  • Check whether that Country Id is already selected in any of the previous rows.
  • If it is already selected, set the Radio Button Enabled property to False.
  • Otherwise, keep it enabled.
  • Once the user clicks Select Country and states are added for that row, you can make that entire row's country selection read-only/disabled while keeping the selected country checked.
  • When a row/states are removed, remove that selection from your list. The country will then automatically become available again in the remaining rows.

For example, if Row 1 has Country A selected, then in Row 2:

Country A -> Disabled

Country B -> Enabled

Country C -> Enabled

If Row 2 selects Country B, then Row 3 should have A and B disabled and only C enabled.

I would suggest keeping the selected CountryId against each row in your local structure/list and using that list to determine whether each radio option should be enabled. This will be easier to maintain than manually enabling/disabling the radio buttons in AddMoreOnClick.

For the tabs on the destination screen, you can use the same structure and filter/group the records by Country, then render the corresponding states inside each Country tab.

Regards,

Mandar

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