QuestionsAdd script in magento 2 backend from field
mmkevinsmith0610 asked 3 weeks ago




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


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

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

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



Your Answer
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.