<![CDATA[ How to set Quip commenter email as not mandatory? - My Forums]]> https://forums.modx.com/thread/?thread=80513 <![CDATA[Re: How to set Quip commenter email as not mandatory?]]> https://forums.modx.com/thread/80513/how-to-set-quip-commenter-email-as-not-mandatory#dis-post-518060 You're right, desper.
With my posted solution, users are not able to submit there e-mail-address.]]>
sebastianb Jan 07, 2015, 11:44 AM https://forums.modx.com/thread/80513/how-to-set-quip-commenter-email-as-not-mandatory#dis-post-518060
<![CDATA[Re: How to set Quip commenter email as not mandatory?]]> https://forums.modx.com/thread/80513/how-to-set-quip-commenter-email-as-not-mandatory#dis-post-518058 desper Jan 07, 2015, 11:18 AM https://forums.modx.com/thread/80513/how-to-set-quip-commenter-email-as-not-mandatory#dis-post-518058 <![CDATA[Re: How to set Quip commenter email as not mandatory?]]> https://forums.modx.com/thread/80513/how-to-set-quip-commenter-email-as-not-mandatory#dis-post-518051
In template tplAddComment:

Uncomment the default label and input field for e-mail..
<p class="quip-fld">
<label for="quip-comment-email-[[+idprefix]]" class="required">[[%quip.email]] <span class="quip-error">[[+error.email]]</span></label>
<input type="text" name="email" id="quip-comment-email-[[+idprefix]]" value="[[+email]]" required="required" placeholder="Ihre E-Mail-Adresse" />
</p>


..and add an hidden input field
…
<input type="hidden" name="auth_nonce" value="[[+auth_nonce]]" />
<input type="hidden" name="preview_mode" value="[[+preview_mode]]" />
[[- E-MAIL HERE]]
<input type="hidden" name="email" value="[email protected]" />


Regards
Sebastian]]>
sebastianb Jan 07, 2015, 11:05 AM https://forums.modx.com/thread/80513/how-to-set-quip-commenter-email-as-not-mandatory#dis-post-518051
<![CDATA[Re: How to set Quip commenter email as not mandatory?]]> https://forums.modx.com/thread/80513/how-to-set-quip-commenter-email-as-not-mandatory#dis-post-506006
I know it's an old post but i struggled a few hours with the same problem and didn't found a real solution to make the mail input optional.
For now I'm using a little turnaround. Probably not the smartest way but maybe it'll help.

<script type="text/javascript">
    function addText() {
        var input = document.getElementById('quip-comment-email-qcom');        
        var mail = $('#quip-comment-email-qcom').val();
	    if(mail == "" ) {
	         input.value = 'no mail' ;
	    }      
    }
</script>

<form id="quip-add-comment-[[+idprefix]]" action="[[+url]]#quip-comment-preview-box-[[+idprefix]]" method="post" onsubmit="addText()">
...
]]>
desper Aug 08, 2014, 01:39 PM https://forums.modx.com/thread/80513/how-to-set-quip-commenter-email-as-not-mandatory#dis-post-506006
<![CDATA[How to set Quip commenter email as not mandatory?]]> https://forums.modx.com/thread/80513/how-to-set-quip-commenter-email-as-not-mandatory#dis-post-443614
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.]]>
krwrang Nov 18, 2012, 05:32 AM https://forums.modx.com/thread/80513/how-to-set-quip-commenter-email-as-not-mandatory#dis-post-443614