Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author hoffcamp

    (@hoffcamp)

    There is no easy way right now, but thank you for asking. This should be easier to do.

    The only way other than a custom template would be some javascript. I’m not sure how to get the user’s e-mail into JS though, without modifying the theme files.

    Thread Starter meiskv

    (@meiskv)

    sir hoffcamp i’ve just found a solution to the problem i use a javascript. btw thanks for the reply.

    i think the ‘text-4ef29112d8a62’ is not dynamically changing even if you refresh the page but i think it will change if you add a new or renew the textbox in the dashboard. after creating the form the id that gave to the element will be permanent unless you re-create the element in the dashboard. am i right sir?

    window.onload = function() {
      var name = fm_get_form_item('text-4ef29112d8a62');
      var email = fm_get_form_item('text-4ef291141a19f');
      name.value = "<?php echo $current_user->user_firstname;?> <?php echo $current_user->user_lastname;?>";
      email.value = "<?php echo $current_user->user_email;?>";
    }

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: WordPress Form Manager] Modify PlaceHolder or Input Values’ is closed to new replies.