$fieldset->addField(

’email’,

‘text’,

[‘name’ => ’email’, ‘label’ => __(‘ Email Id’), ‘title’ => __(‘ Email Id’), ‘required’ => true, ‘readonly’ => true, ‘style’   => ‘opacity:1’,]

)->setAfterElementHtml(”

<script type=\”text/javascript\”>

require([‘jquery’, ‘jquery/ui’], function($){

$(document).ready(function(){                                                                                                                                                                               //alert(‘functicon’);                                                                                                                                                                                         document.getElementById(‘item_email’).value = ‘”.$customer->getEmail().”‘;                        });

});

</script>”);

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.