cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shang
Frequent Visitor

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 @Shang :

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 @Shang :

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (35,045)