Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nidrig

    (@nidrig)

    Hi,

    I found the code responsible for this behavior, which is visible only for non admin users.

    It’s in file helpers/form_engine.php
    Lines 434 to 440, the “value” field is forced with the logged user email.

    I hope that helps for the next releases.

    `// special case for email widget
    if($block[‘field’] === ’email’) {
    $user_email = WYSIJA::wp_get_userdata(‘user_email’);

    if($user_email && is_string($user_email) && is_user_logged_in() && !current_user_can(‘switch_themes’) && !is_admin()) {
    $block[‘value’] = $user_email;
    }
    }`

    Hi Nidrig,

    Yes, thanks for the tip, we already changed that code for the next versions!

    Best regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove autofill in widget?’ is closed to new replies.