cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerSäm
Skilled Sharer
Skilled Sharer

After entering a number, a euro sign must appear behind it! - How

Hi all,

 

I would like that when I enter a number in the input field (see image) automatically a "€" sign must appears behind it.

IMPORTANT: At the beginning the field should be empty, only after entering a number the euro sign must appear. Is this possible?

 

PowerSm_0-1632127101503.png

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @PowerSäm ,

 

I did a test for you.

 

Add a textinput control 'TextInput1' and set its onchange property to:

Set(Var1,TextInput1.Text);Set(Var2,Concatenate(TextInput1.Text," €" ));Reset(TextInput1)

 

Set the textinput control's Default property to:

If(Trim(Var1)=Blank()||Trim(Var1)="",Blank(),Var2)

 

Best Regards,

Wearsky

View solution in original post

6 REPLIES 6
Kosenurm
Post Prodigy
Post Prodigy

Versuchen Sie es in der Text-Eigenschaft für diese Eingabe...

 

Text = “€” & Text(ThisItem.’Your Field Name’, “[$-en-US]###,###”)

Thanks @Kosenurm for your answer, but unfortunately it does not work. It gives me an error...

What error do you get?

"The Text function has invalid arguments."

 

This is because I cannot use "ThisItem" since it is an input field and not a gallery.
Also, I can't specify the field I'm writing in with Text(Inputfield_name.text) because I can't refer to my own input field.

I think I have to work with the If formula. E.g. If Inputfield is empty then do nothing, otherwise write an € behind it.

 

Thanks in advance!

v-xiaochen-msft
Community Support
Community Support

Hi @PowerSäm ,

 

I did a test for you.

 

Add a textinput control 'TextInput1' and set its onchange property to:

Set(Var1,TextInput1.Text);Set(Var2,Concatenate(TextInput1.Text," €" ));Reset(TextInput1)

 

Set the textinput control's Default property to:

If(Trim(Var1)=Blank()||Trim(Var1)="",Blank(),Var2)

 

Best Regards,

Wearsky

Hi, perfect, this works great. Thanks a lot @v-xiaochen-msft !

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,540)