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

Notifications

Announcements

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:
I have the same question (0)
  • Jon Unzueta Profile Picture
    1,827 Super User 2025 Season 2 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,827 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard