Support » Plugin: Jetpack by WordPress.com » add values to contact form in code

  • Resolved arathra

    (@arathra)


    Is there a way I can add the values of the USER EMAIL and USER ID into the form in a read-only field for logged in users? And then make them readonly?

    When I get the form I’d like to see the email/id for the person who sent it.

    I understand I can pre-fill forms but that only works (afaik) via the URL.

    At the moment a typical field looks like this:

    [contact-field label="Email" type="email" required="true" /]

    This code below would be ideal but it doesn’t work (the email would be taken from the user’s info):

    [contact-field label="Email" type="email" value="joe@example.com" readonly /]

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘add values to contact form in code’ is closed to new replies.