web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / currency control with ...
Power Apps
Unanswered

currency control with CheckBox

(1) ShareShare
ReportReport
Posted on by 159

Hi Team.

 

I am building an App in power apps, and I want to control the type of currency with a CheckBox.

 

the condition is: if the value of the CheckBox is true the TextInput must show its content in Euros, if the value of the checkbox is false the Textinput must be in Pesos.

 

Could you help me?

jaimeMtz07_0-1685386695294.png

jaimeMtz07_1-1685386712184.png

 

 

Categories:
  • Jon Unzueta Profile Picture
    1,836 Super User 2026 Season 1 on at

    Hello @jaimeMtz07 

    I hope I can help you!

    In the Oncheck of the checkbox
    Set(value;TextInput1.Text/18,28)

    In the OnUNcheck of the checkbox
    Set(value;TextInput1.Text*18,28)


    and then in the text box you only show the value of the variable

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • jaimeMtz07 Profile Picture
    159 on at

    Thanks for your quick answer........ 

    in reality , I want to do is that the user puts a number in the TextInput and €45,000.00 is displayed when the CheckBox is true, if the CheckBox is False, $45,000.00 should be displayed. I do not want a conversion, only that the correct value is displayed: the user will leave 45000 in the TextInput but it should be displayed: €45,000.00 or $45,000.00 depending on the value of the CheckBox

  • Jon Unzueta Profile Picture
    1,836 Super User 2026 Season 1 on at

    Hello @jaimeMtz07 

    The system is the same

    Oncheck=> Set(_varnum;Concatenate("$";Mid(TextInput1.Text;2;Len(TextInput1))))

    OnUncheck=> Set(_varnum;Concatenate("€";Mid(TextInput1.Text;2;Len(TextInput1))))

     

    default  TextImput1=> _varnum

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard