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

SP Online List: Title field required iOS bug ?!

Little bit of background:

I created a pretty large SP Online list with several columns of different data types. Some need to contain required information, some not.

  • Created a canvas app from that list
  • Modified the editform to make all fields from the list available

(Was working fine on PC and iOS)

  • As the list was too long I splitted the fields on multiple screens
  • Added additional data validation on DisplayMode for the next screen buttons and used the following onSelect function on each:

NewForm(EditForm1_1); Navigate(EditScreen_reporter, ScreenTransition.Fade)

NewForm(EditForm1_2); Navigate(EditScreen_account, ScreenTransition.Fade)

  • At the last screen added the submit button with Patch function to the SP Online list with each EditForm.Updates
  • This solution does work fine now on the PC but doesn’t anymore on iOS. I always get an error after submitting that title field is required but missing.
    1. DataValidation wouldn’t let me go to the next screen of title field would be empty which isn’t the case

 

I hope the scenario is clear enough to find a solution for this behavior only on my mobile device.

 

Thank you all

1 ACCEPTED SOLUTION

Accepted Solutions
Christoph15
Level: Powered On

Re: SP Online List: Title field required iOS bug ?!

no idea why I followed the approach to use "Patch"... stupid me.

 

Used "Collect" now as I only need new records and working fine.

 

Srsly last issue I'm facing now is the attachment field 🙂

 

...,Attachments:DataCardValue105.Attachments})

 

returns wrong type as "table" is expected. any advice as I do not find any other related type.

setting max available attachments to only 1 items doesnt change anything.

 

thank you all already for your help!

View solution in original post

12 REPLIES 12
Super User
Super User

Re: SP Online List: Title field required iOS bug ?!

Phones are more picky about where to click.

 

How are they selecting the item to edit? Do they select from a gallery first or if you are using patch, is it safe to assume you have them editing the data directly in the Gallery?

Christoph15
Level: Powered On

Re: SP Online List: Title field required iOS bug ?!

sorry maybe I missed it. The users are only creating new items in the SP list.

 

What I found out now is that on the screen where the title field needs to be filled in, I have 3 additional fields (1 required, 2 not)

If I fill in every field on this screen it does work! If I only complete the required field it reproduces the same error. 

 

Note: my required field are marked as required in the SP Online list and the app itself. 

Community Support Team
Community Support Team

Re: SP Online List: Title field required iOS bug ?!

Hi @Christoph15,

Could you please share a bit more about the Patch formula used within your app?

Do the multiple Edit forms within your app connect to same data source?

I have made a test on my side, and don't have the issue that you mentioned. Please take a try with the following Patch formula within your app:

Patch(
           'YourSPList',
           Defaults('YourSPList'),
           EditForm1_1.Updates,
           EditForm1_2.Updates,
           EditForm1_3.Updates,
           ...
)

If the issue still exists, please consider take a try to turn off/disable the "Improved app rendering (final validation)" option within Advanced settings of App settings of your app, re-publish your app, check if the issue is solved.

Also please take a try to re-create your app based on your SP list, check if the issue is solved.

 

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.
Christoph15
Level: Powered On

Re: SP Online List: Title field required iOS bug ?!

thanks for your suggestion but changing this advanced option didn’t change the behavior.

 

all edit forms connect to the same data source. 

 

this is the patch function I use on the last edit screen:

 

Patch(complaint_db,Defaults(complaint_db),

EditForm1.Updates,

EditForm1_1.Updates,

EditForm1_2.Updates,

EditForm1_3.Updates,

EditForm1_4.Updates,

EditForm1_5.Updates,

EditForm1_6.Updates,

EditForm1_7.Updates);
Navigate(BrowseGallery1, ScreenTransition.Fade)

Super User
Super User

Re: SP Online List: Title field required iOS bug ?!

I may be missing something but why are you using Patch instead of just submitting the Forms?

 

And you have three forms...are they all different fields but one line item or it is supposed to create three different line items...one for each form when "Updated"? 

 

If it is three different forms each creating a different line item at the end I would just submit all three forms and not use Patch...it will typically store the value in the form when you go to the next screen each time.

 

If it is one line item and each of the forms simply are there to allow the values to be put in and you are wanting to use patch it would probably be best to update your Patch code to refer to each column and then tell it what field it is putting in. (ColumnName: DataCardValue.Text..etc)

 

I know everybody has their own way but the only times I use patch is if I am adding or editing items within a gallery (multiple line items at once) or if I have my fields outside a form.

 

When I need to split out the fields to make them layout right on the screen I do it all inside one form and then just show and hide them using the Update Context. See the screen shot I attached below is an example and it has all 18 questions inside one form and when they click the arrow it displays the next one..I just control what the user actually sees and then it is all on one screen. 

Christoph15
Level: Powered On

Re: SP Online List: Title field required iOS bug ?!

I'm adding one line item to the list using multiple forms on different screens. My understanding was using Patch function is the way to go.  I thought your approach wil be used for submitting items from a local collection to a list but I will give it a try 😉 

Highlighted
Super User
Super User

Re: SP Online List: Title field required iOS bug ?!

I see Patch used for everything on here but I think it is over used. I only use it when necessary.

 

Don't get me wrong, I use it A lot because I do tons of stuff when it is necessary but any time I CAN use a submit form I do...I only use Patch when that isn't an option. 

 

Everybody has their own style...I just try not to over complicate things when it isn't necessary....I know uncommon for a woman but that is just my way..lol.

Christoph15
Level: Powered On

Re: SP Online List: Title field required iOS bug ?!

using the single Column:DatacardValue in the patch function did solve the issue for me!

 

Patch(complaint_db,Defaults(complaint_db),{Title:DataCardValue9.Text,aware_date:DataCardValue10.SelectedDate,reporter_email:DataCardValue58.Text,reporter_occupation:DataCardValue59.Text.....}

Navigate(BrowseScreen1,ScreenTransition.Fade)

 

now facing another issue ;(

 

when I use the add attachment field on my phone I'm able to take a picture with the camera. after selecting "use the picture" the apps restarts/1st screen appears...

 

 

Super User
Super User

Re: SP Online List: Title field required iOS bug ?!

On the Add attachment part it is inside a form? And is it a new form or an edit form?

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 (5,042)