cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

fail to convert text to number(value)

Hi, I use SharePoint to store data.

There is a order list app.

I patch the data after clicking the confirm button.

The SP data type of "price" is number,

and I use: Value(DataCardValue13.Text).

But it can't be input to SP,

there is empty of data.

I don't know why,

Please help me, thanks.

Shang_0-1618992384914.pngShang_1-1618992396923.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @Anonymous :

Could you tell me what the price column is?Is it a number column?

Could you please check whether Value(DataCardValue13.Text) has the correct return value?(Add a label control and set it's text property to "Value(DataCardValue13.Text)")

May be you could try:

Value(
  Match(DataCardValue13.Text,"\d+(\.\d+)?").FullMatch
)

Best Regards,

Bof

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @Anonymous :

Could you tell me what the price column is?Is it a number column?

Could you please check whether Value(DataCardValue13.Text) has the correct return value?(Add a label control and set it's text property to "Value(DataCardValue13.Text)")

May be you could try:

Value(
  Match(DataCardValue13.Text,"\d+(\.\d+)?").FullMatch
)

Best Regards,

Bof

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 (4,350)