• Resolved vDani

    (@vdani)


    Hi,
    it’s possibile set data in a textbox ?

    I would like to set as the nick of the user logged in

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    If you use the hidden field feature you can set one of the fields to the “user_login” (aka username) of the person filling out the form. The “user_login” is one of the choices available for hidden fields.

    You can find more information on hidden fields in this post on my web site from back when I added the functionality.

    Thread Starter vDani

    (@vdani)

    This field must be set on the Google Form or only your plugin ?

    Thanks Mike.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    You build the form within Google Docs like you normally would – a text box with a label, etc.

    You then determine the ID of the field (it likely will be something like entry.NNNNNNNNN where NNNNNN is a string of numbers) as you need the ID to define the field as hidden when defining it within WordPress. When you define the hidden field there are a number of preset values it can take on based on your site, the user’s login name is one of them.

    There are pictures in the post on my web site I pointed to previously.

    You do not need to set the value to anything when defining the form within Google Docs.

    Thread Starter vDani

    (@vdani)

    Very well.
    Many thanks !!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Set data in a textbox’ is closed to new replies.