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;
}
}`