How to custom id input on field in form ui component Magento 2?
Here's my code:

<input class="admin__control-text" type="text" data-bind="
    event: {change: userChanges},
    value: value,
    hasFocus: focused,
    valueUpdate: valueUpdate,
    attr: {
        name: inputName,
        placeholder: placeholder,
        'aria-describedby': noticeId,
        id: uid,
        disabled: disabled,
        maxlength: 255
}" name="general[sku]" aria-describedby="notice-MBFNF2H" id="MBFNF2H" maxlength="255">

I want custom id field input.

$fields = [
        'label' => __('Attribute: '.$nameAttribute),
        'formElement' => 'input',
        'sortOrder' => 0,
        'validation'=> ['required-entry'=> true]

Your Answer

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

Browse other questions tagged or ask your own question.