cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bduan
Level: Powered On

Custom Card format issues

If I go to my .xlsx table that my data is connected to and change the format of a column to 'Number' rather than 'General', my forms will all return errors such as:

 

Invalid value '100' for field 'xyz', expected a number.

 

I cannot find where in the advanced fields where I can specify the format of the card output when the form is submitted. Is there a way to fix this?

2 REPLIES 2
Community Support Team
Community Support Team

Re: Custom Card format issues

You could switch the TextInput  control format property to number instead of Text.

"

Format – Whether the user input is restricted to numbers only or can be any text

"

Further, we may switch the string format into number by Value function,  under the DataCard Update property, switch the formula as below:

Value(DataCardValue.Text)

Which should convert the string into Number.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
bduan
Level: Powered On

Re: Custom Card format issues

It didn't work. I should mention I'm using a "Rating" control card

 

I switched the Update field to

 Value(Rating.Value)

It makes zero sense why this wouldn't work but it's still returning "Invalid value '3', expecting a number"

 

Edit: It didn't work for a standard text box input control card either. It works if I save the column type in the table as 'General' but the formatting seems to constantly switch around.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,563)