110
Views
3
Comments
Solved
Hide a container with a link

Hi guys,

New to outsystems sorry for this question.

I’m working on a mobile app and what I’m trying to achieve is hiding/revealing a container with the click of a link.

I’ve read other posts and tried following the steps but no luck. I’m making a Boolean variable but can’t seem to get it working. The example provided on another post recommends I do an Ajax refresh but that’s not available on mobile. 

My container with the expression is called “Radio”.

How do I get radio container to disappear 

I’ve had a good look around but I’m so stuck and I was embarrassed to ask because this question has been asked, If anyone can help out a complete beginner would be greatly appreciated. Screenshots of actions or working demo would be appreciated 

Cheers in advance

2021-06-02 20-50-04
Márcio Carvalho
Solution

In the container there is an input parameter called Visible, you just need to put your boolean variable there and I think that's it. Then you just need to make the logic to show or to hide and the variable will be updated inside of the Visible property of the container and you will see the result you want on the screen. Another option is to use an if widget on the container with the value of the boolean on the condition.

Let me know if it works.

Regards,

Márcio

UserImage.jpg
Halil J Ada

I could kiss you right now. Thank you for quick and detailed response. 

2021-12-23 04-28-09
Navneet Sharma

Hello @Halil J Ada 

you should try a Boolean var for containers visibility.

On click the link you can use the actions for changed the value of Boolean var.

I hope this will be help.   

can you Please share the OML file for better understanding .


Thanks & Regards

Navneet Sharma

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