6

Please open file "vendor\magento\module-catalog\view\adminhtml\templates\catalog\product\attribute\js.phtml".

Go to the function updateRequriedOptions(Line Number 258)

 function updateRequriedOptions()
{
    if ($F('frontend_input')=='select' && $F('is_required')==1) {
        $('option-count-check').addClassName('required-options-count');
    } else {
        $('option-count-check').removeClassName('required-options-count');
    }
}

Please, what is $F here?

4

According to prototype documentation

$F(element)

Returns the value of a form control. This is a convenience alias of Form.Element.getValue

Check Documentation

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.