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

Welcome to the User Group Public Preview

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

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

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (12,606)