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

Patching an empty text input into number SP list column

If a user has not input any number into a text input control, is there any way to patch this into an SP list number column without SP automatically converting the blank to a zero?

 

I have a large number of controls and SP automatically changing the blank to a zero is not letting me work with other formulas that are dependent on whether the number column of the item is blank.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please share a bit more about the Number fiels in your SP list? Do you set a Default value for it?

 

I have made a test on my side, and don't have the issue that you mentioned. If I do not specify any values within the Number field box in the Edit form, when I press "Submit" button, the number field would be blank.

 

As an fixed solution, please consider take a try with the following workaround:16.JPG

Set the Update property of the Amount2 (Number Data card) which contains the Number Text Input box (in your Edit form) to following:

If(
   IsBlank(DataCardValue18.Text),
   Blank(),
   Value(DataCardValue18.Text)
)

On your side, you should type (Set the Update property of the Number Data card which contains the Number Text Input box😞

If(
   IsBlank(NumberTextInputBox.Text),
   Blank(),
   Value(NumberTextInputBox.Text)
)

Please take a try with above solution, then check if the issue is solved.

 

If the issue still exists, please consider re-create your SP list, then re-generate an app based on your new list, then try it again, check if the issue still exists.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please share a bit more about the Number fiels in your SP list? Do you set a Default value for it?

 

I have made a test on my side, and don't have the issue that you mentioned. If I do not specify any values within the Number field box in the Edit form, when I press "Submit" button, the number field would be blank.

 

As an fixed solution, please consider take a try with the following workaround:16.JPG

Set the Update property of the Amount2 (Number Data card) which contains the Number Text Input box (in your Edit form) to following:

If(
   IsBlank(DataCardValue18.Text),
   Blank(),
   Value(DataCardValue18.Text)
)

On your side, you should type (Set the Update property of the Number Data card which contains the Number Text Input box😞

If(
   IsBlank(NumberTextInputBox.Text),
   Blank(),
   Value(NumberTextInputBox.Text)
)

Please take a try with above solution, then check if the issue is solved.

 

If the issue still exists, please consider re-create your SP list, then re-generate an app based on your new list, then try it again, check if the issue still exists.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,358)