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.

1 Answer 1


Please put below code to your UI file.

        <hidden name="hidden_example">
                <value>hidden value</value>

Hope it works!

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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