1

I want to set hidden field value in my form UI component. Also, I want to pass that value from the data provider and set it in form UI component as that value would be dynamic.

I have set hidden field with data scope.

Now the question is I'm getting the value in data provider and passing it to form component but while submitting the form I'm getting nothing in request.

Please help for the same. Thanks in advance.

0

Please put below code to your UI file.

<form>
    ...
    <fieldset>
        ...
        <hidden name="hidden_example">
            <settings>
                <value>hidden value</value>
            </settings>
        </hidden>
    </fieldset>
</form>

Hope it works!

and if you want to pass value please follow. How can we set store value in UI form Magento 2

| improve this answer | |

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.