Plugin Author
pipdig
(@pipdig)
Hi montesound, glad you like it!
I’ve added this to version 2.2.3 for you now. So you can use the following:
[zendesk_request_form name="Prefilled Name" email="[email protected]"]
If the fields are prefilled, then you can then hide them with some CSS:
<style>
#zendesk_field_zen_name, #zendesk_field_zen_email {
display: none;
}
</style>
You may also wish to disable the fields so people cannot edit them:
<script>
jQuery(document).ready(function($) {
$("#zendesk_field_zen_name input, #zendesk_field_zen_email input").prop("disabled", true);
});
</script>
Please note, the prefill of the name and email will only work for users who are not logged on. If the user is logged in, then the account data will be used instead of the prefilled attributes.
Hi pipdig,
That is working well. Do you have any thoughts on how I could collect it anonymously if they happen to be logged in?
Thanks
Plugin Author
pipdig
(@pipdig)
I’ve just created a new option so that you can disable that. If you update to version 2.2.4 you can disable user data from being used like this:
[zendesk_request_form users="no" name="Prefilled Name" email="[email protected]"]
Hopefully that helps 🙂