Forums

Forums / Developing Portals / send user email address as hidden value with form

send user email address as hidden value with form

Thread is closed for posting
2 posts, 1 answered
  1. eva.braun
    eva.braun avatar
    39 posts
    Registered:
    12 Feb 2015
    15 Dec 2016
    Link to this post
    I´d like to have the email address, of a user submitting a form, to be send with the form.
    I guess that may require some javascript. Can anyone help?
  2. Missing user
    Missing user avatar
    Answered
    16 Dec 2016 in reply to eva.braun
    Link to this post
    Hi Eva,

    That's right, you need to use javascript widget at your form and an example code is below to set email address to your hidden field.


    var getemail=tpc.identity.userEmail;
    $find($(".AdvanceDeveloperNameOfYourFieldHere").attr("id")).set_value(getemail);


    Please remember that in your JavaScript widget setting, make it "​Placed by ​Body ​Closing Tag".

    Thanks
    Syed

2 posts, 1 answered