Notifications
Announcements
I'm having an issue with an app. I thought that if you submit a form that has defaults it would just submit the defaults. Is this incorrect? and if so is there any way to have the defaults set to the values then send it without having to go to each individual control as I have an app with 25 screens with 20~ controls each and that sounds like a nightmare.
Thanks n advance
@Anonymous
What code have you used to submit this form?
Simply The"SubmitForm()"
fuction
Thanks for response. To answer your question: the form will submit with any values currently within the form at the time of submission. When in NewForm mode any fields having Default values will be populated with those values and be included in the submit.
There is currently no way to bulk update the the Default property of a form.
---Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
@mdevaneyYes all of my forms have the "DefaultMode" Set to new
does it change anything if the fields are set to required? the way I have it set up is there is 4 options
Yes
No
N/O
N/A
and if they don't choose anything it is set to N/A but its set as required in a sharepoint online list
Nope that's something different.
You need to use this code to put the form in new mode. Then the default values will appear. I would typically put this in the OnVisible property of the screen or the OnSelect property of the button used to navigate to the form.
NewForm(your_form_name);
@mdevaney Good Morning!
So, I just finished implementing that and it doesn't seem to be working as setting the dafaults. I even set up a button to do
"NewForm()" on the same page for testing and its still not working. Any ideas?
Thanks again for all the help you've given me.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268