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
Solved! Go to Solution.
@Anonymous
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);
---
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."
@Anonymous
What code have you used to submit this form?
Simply The
"SubmitForm()"
fuction
@Anonymous
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."
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
@Anonymous
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);
---
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."
@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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
184 | |
53 | |
41 | |
36 | |
30 |
User | Count |
---|---|
240 | |
74 | |
71 | |
69 | |
65 |