-
- 1 Posts
Hi
First of all, sorry if this has been answered somewhere. I have looked everywhere for 2-3 hours and haven't find an answer.
I'm creating a site and some of the users will be people old enough to not have and not want an email address. I noticed an email address is needed to send a comment through Quip.
Here's where I need help. I need to either set email as not mandatory OR set a default email that points to a non-existing address on the domain.
I went through the Quip reply snippet and added some code to check if the posted field is empty and edit accordingly, but no luck.
Where should I be looking at to make this work? I thought about adding it to the template that creates the form, but I don't know if modx tolerates php in those templates and that way I don't know if I'd be destroying the ability to pull user data from those logged in to the manager back end.
Hope I'm making any sense.
-
- 5 Posts
Thank you Sebastian. Your way is good, if i don't need the mail field at all, but for my project i need the email field to be optional. I think it wouldn't work then with the hidden field.
-
- 2 Posts
Sorry, I didn't get this!
You're right, desper.
With my posted solution, users are not able to submit there e-mail-address.