cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

how to disappear a button onclicking?

bmarimuthu-2
12-Amethyst

how to disappear a button onclicking?

I have a button called "continue", if I click on that button, that button should disappear.

how to do this?

ACCEPTED SOLUTION

Accepted Solutions

Hi Bavithraa Marimuthu​,

You can use an Expression widget for that with an an expression with returns false.

example Expression: 1==2?true:false

Set OutputBaseType as Boolean

And check the Output property.

Bind the click event of button to Evaluate of Expression widget.

and link the output of Expression widget to visible property of the Button

Do let me know if you face any issues.

View solution in original post

6 REPLIES 6
AnnaAn
14-Alexandrite
(To:bmarimuthu-2)

Hi Bavithraa Marimuthu​,

You could call a service when "Clicked" event is triggered for the button widget;

in the service you could return false and then bind the reuturn boolean value to the visible propterty to the button.

1. in your service author like this:

2. in mashup build like this:

Hope this helps,

Br,

Anna

Hi Bavithraa Marimuthu​,

You can use an Expression widget for that with an an expression with returns false.

example Expression: 1==2?true:false

Set OutputBaseType as Boolean

And check the Output property.

Bind the click event of button to Evaluate of Expression widget.

and link the output of Expression widget to visible property of the Button

Do let me know if you face any issues.

Also, set the visible property of Expression widget to false so that it does not show at run time.

But no button displays in the mashup

And check the Output property of Expression widget to true initially.

Now it works fine now. Even if we set the visible property of Expression widget to true it does not affect the output.

Announcements


Top Tags