Hi all.
So after submitting my form, I would like the new form to retain the fields used in the previous form.
The purpose for this is because my form has a lot of fields and it is quite unproductive to reselect all the same fields again for a different entry.
Any way that this can be done? Thanks in advance!~
Solved! Go to Solution.
Hi @raddy,
Could you please share a screenshot of your app's configuration?
Do you want to retain the fields used in the previous submitted form when you add a new form within your app?
I agree with @tchin-nin's thought almost, I have made a test on my side, please take a try with the following workaround:
I assume that I want to retain the Address field value used in previous form when I add a new form within my app. Please take a try with the following workaround:
Set the OnSuccess property of the Edit form control (EditForm1) to following formula:
Set(PreviousFormData,EditForm1.LastSubmit)
Note: The EditForm1 represents the Edit form control within my app.
Set the Default property of the Address Data card control to following formula:
If(EditForm1.Mode=FormMode.New,PreviousFormData.Address,ThisItem.Address)
Or
Set the Default property of the Text input control included within the Address Data card to following formula:
If(EditForm1.Mode=FormMode.New,PreviousFormData.Address,ThisItem.Address)
On your side, you should type the following formula within the Default property of the control:
If(EditForm1.Mode=FormMode.New,PreviousFormData.propertyName,ThisItem.propertyName)
The GIF image as below:
Best regards,
Kris
Hey @raddy
You should try using the LastSubmit property of your Form.
LastSubmit โ The last successfully submitted record, including any server generated fields.
On the default property of your control you may add something like this:
If(form.mode=new,form.lastsubmit.property1,this item.property1)
Cheers,
Thรฉo
Hi @raddy,
Could you please share a screenshot of your app's configuration?
Do you want to retain the fields used in the previous submitted form when you add a new form within your app?
I agree with @tchin-nin's thought almost, I have made a test on my side, please take a try with the following workaround:
I assume that I want to retain the Address field value used in previous form when I add a new form within my app. Please take a try with the following workaround:
Set the OnSuccess property of the Edit form control (EditForm1) to following formula:
Set(PreviousFormData,EditForm1.LastSubmit)
Note: The EditForm1 represents the Edit form control within my app.
Set the Default property of the Address Data card control to following formula:
If(EditForm1.Mode=FormMode.New,PreviousFormData.Address,ThisItem.Address)
Or
Set the Default property of the Text input control included within the Address Data card to following formula:
If(EditForm1.Mode=FormMode.New,PreviousFormData.Address,ThisItem.Address)
On your side, you should type the following formula within the Default property of the control:
If(EditForm1.Mode=FormMode.New,PreviousFormData.propertyName,ThisItem.propertyName)
The GIF image as below:
Best regards,
Kris
Thank you! It worked well.
However, it doesnt work well with dropdown.
I used the same line of code for the dropdown's 'Default'.
If(NewForm1.Mode=FormMode.New,PreviousFormData.Trade,ThisItem.Trade)
Even if I start the app for the first time, there are values in the dropdown.
Yep! It works. Thank you~
User | Count |
---|---|
183 | |
124 | |
88 | |
45 | |
43 |
User | Count |
---|---|
248 | |
158 | |
127 | |
78 | |
73 |