Edit Profile - terms_acknowledged required
I have updated from version 3 to 4.0.2 (Typo 6.2.19).
Now I have noticed that it was impossible to submit changes in the edit profile context, if terms_acknowledged was added to plugin.tx_srfeuserregister_pi1.requiredFields.
After I submited the form, it is still in edit mode and not in "check your modifications".
No error message ("missing field") was shown. I don't want to show the field in edit context, only in create mode (In my opinion there is no sense to uncheck the terms in edit mode).
I have tried my own custom template and the regular template. If I delete the field from required fields everything is working, but registration without checked terms is possible.
Thank you in advance for your help.
#2 Updated by Stanislas Rolland over 2 years ago
This is not well documented... but you can see what happens in the TS Object Browser.
If you set, in the TS constants:
so that they both include terms_acknowledged, it will apply to both create and edit forms. This is because these constants are used to set the values of the following TS setup settings:
However, you may override both settings in TS setup and for each form separately. For example, if you set, additionnaly, in TS setup
plugin.tx_srfeuserregister_pi1.edit.fields := removeFromList(terms_acknowledged)
plugin.tx_srfeuserregister_pi1.edit.required := removeFromList(terms_acknowledged)
Then, the field terms_acknowledged will not appear on the edit form and will not be required. But it will still appear and be required on the create form.