Hello everyone, I have a button named New on the form. OnSelect, it should create new form. However, nothing is happening when the button is clicked. How can I solve this?
Solved! Go to Solution.
Hi @Anonymous ,
What do you mean "create new form"?
Actually, the NewForm function is used to change a form's mode, not create a form.
Firstly, let me tell you why you need to change form's mode:
A form has three mode: edit, new, view.
When the mode is edit, the form will display an existing record's data and be used to update this existing record.
When the mode is new, the form will display blank value by default, and be used to create a new record.
When the mode is view, the form will display an existing record's data and be used to display this existing record.
Secondly, there's no function about "create" form.
You need to insert forms when designing this app.
There's only functions about changing form's mode:
EditForm(),NewForm(),ViewForm().
If you set one button's onselect to : NewForm(Formname), you click this button, the form will change to new mode.
Thirdly, put this button inside the form or outside the form will not effect this feather.
I've made a similar test, putting two buttons inside the form to change form's mode. It works good.
So I think the problem should not be about this.
If you still have problem, after my description, please describe your problem more detailed.
Best regards,
Insert another Button On the Screen not inside the Form or Inside the datacard and put same formula:
NewForm(SharePointForm1)
It not working because the button is inside a datacard which is in the form
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @Anonymous ,
What do you mean "create new form"?
Actually, the NewForm function is used to change a form's mode, not create a form.
Firstly, let me tell you why you need to change form's mode:
A form has three mode: edit, new, view.
When the mode is edit, the form will display an existing record's data and be used to update this existing record.
When the mode is new, the form will display blank value by default, and be used to create a new record.
When the mode is view, the form will display an existing record's data and be used to display this existing record.
Secondly, there's no function about "create" form.
You need to insert forms when designing this app.
There's only functions about changing form's mode:
EditForm(),NewForm(),ViewForm().
If you set one button's onselect to : NewForm(Formname), you click this button, the form will change to new mode.
Thirdly, put this button inside the form or outside the form will not effect this feather.
I've made a similar test, putting two buttons inside the form to change form's mode. It works good.
So I think the problem should not be about this.
If you still have problem, after my description, please describe your problem more detailed.
Best regards,
Apparently, there is no problem at all. It doesn't work because I did not click on Edit All first. It's now working fine as intended.
Thanks!
User | Count |
---|---|
183 | |
108 | |
88 | |
44 | |
42 |
User | Count |
---|---|
226 | |
108 | |
104 | |
68 | |
68 |