How can I press a button to change it name
Question
Application Type
Mobile

How can I press a button and change name

Hi Charles,

Here's the .oml file for you

and You can check it out on this website
https://abhishek-paliwal.outsystemscloud.com/ButtonText/ButtonTest?_ts=637895402135612080

If it solves your issue then please mark this as a solution.

Thanks & Regards
Abhishek Paliwal

ButtonText_v3.oml

Hey, can you provide more information?

What are you trying to accomplish, do you want to change the name of the button, or do you want to change the name to something else?

Can you provide pictures or even an OML(after saying what you really want)?

To change the name of the button you just need to do this.

Kind Regards,

Márcio

Hi,

Can you provide detailed example or OML so that your requirements will be more clear


Thanks

Tanisha

Hey,

I had created boolean local variable with default value as false.

Added condition to button text based on boolean variable like if isclicked=false then before click else after clicked

Hope you will understand.

Thanks

Yogesh

Can you send me an OML


I want to click it several times and the name change

Hey ,
Please check oml for several time click, there are two buttons, you may observe it

Thanks

Yogesh

ButtonRename.oml

Hey Charles,

You can achieve this by following these steps

Firstly change the button's text to expression

then create a local variable of text type and set the default text you want to set on the button.

And set this local variable to expression.

then you have to set on click client action and Assign the new text to a local variable.

I think that will resolve your issue.

Thanks and Regards,

Abhishek Paliwal 

Can you show me how to click it several times and change it back and forth


Hi Charles,

Here's the .oml file for you

and You can check it out on this website
https://abhishek-paliwal.outsystemscloud.com/ButtonText/ButtonTest?_ts=637895402135612080

If it solves your issue then please mark this as a solution.

Thanks & Regards
Abhishek Paliwal

ButtonText_v3.oml

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