The user should see the option to add regions after selecting the No of regions.

The user should see the option to add regions after selecting the No of regions.

In case the selected no of the region(s)

is 1 then one text field should appear and a maximum of one region can be added

is 2, then 2 text fields should appear and a maximum of two regions can be added.

is 3, then one text field should appear by default and the user can add more by clicking on the + sign. 

The user should also be able to delete the added regions by clicking on x or - sign. While delete it should not allow the deletion if any type site in the type site table is added under that region. 


Can you please help me in developing this model?

Hi Kushala, 

You can use nested if else to achieve this task. after selecting the number of reasons, you can use this value to display text boxes/input boxes accordingly.

and on "+ sign" you can just provide visibility to the hidden text/input boxes and do the reverse when clicking on "- or x sign". Use a Boolean variable for this purpose.

I hope this helps, but if you need more help, please let me know.

Thanks,

Mita 


  

Hello Kushala,

Please refer the below links. Hope you will get help or at least some idea to fulfill your requirement.

https://www.outsystems.com/forums/discussion/58008/adding-dynamic-widgets-at-runtime/

https://www.outsystems.com/forums/discussion/47844/dynamic-add-input/

Thanks & Kind Regards,

Sachin

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