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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

how to disappear a button onclicking?

bmarimuthu-2
1-Newbie

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?

1 ACCEPTED SOLUTION

Accepted Solutions
ankigupta
5-Regular Member
(To:bmarimuthu-2)

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
13-Aquamarine
(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

ankigupta
5-Regular Member
(To:bmarimuthu-2)

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.

ankigupta
5-Regular Member
(To:ankigupta)

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

ankigupta
5-Regular Member
(To:bmarimuthu-2)

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.

Top Tags