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
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
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
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,
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:
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.
Mandar