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.
(Was working fine on PC and iOS)
NewForm(EditForm1_1); Navigate(EditScreen_reporter, ScreenTransition.Fade)
NewForm(EditForm1_2); Navigate(EditScreen_account, ScreenTransition.Fade)
I hope the scenario is clear enough to find a solution for this behavior only on my mobile device.
Thank you all
Solved! Go to Solution.
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 🙂
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!
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?
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.
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.
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:
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.
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 😉
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.
using the single Column:DatacardValue in the patch function did solve the issue for me!
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...
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.