cancel
Showing results for 
Search instead for 
Did you mean: 

Linking properties of UI components

SOLVED

Linking properties of UI components

Hello everyone,

 

I've got an form UI component defined with two fieldsets.

The first fieldset has 2 input fields and 1 select field. The second fieldset has a dynamicRows component with 3 input fields and 1 select field.

 

What I want to achieve is that when I select an option in the first fieldset I want to update the options of every select component in the second fieldset via an ajax call. I read through the documentation on how to link properties of UI components but I did not find a way to achieve this. I'm trying this since 2 days and didn't find anyting by googling my problem.

 

I guess i'd be kinda easy to achieve this via JS + PHP modifier, but I would like to achieve this as much as possible with the xml configuration.

 

I'd really appreciate if anybody has an idea how to solve my problem.

 

Best regards

Timon

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Linking properties of UI components

Hi @timon_heuser ,

 

Please check below url for adding ui component fields dependency in ui_form.xml

https://magento.stackexchange.com/questions/153740/magento-2-field-dependency-in-ui-form

https://stackoverflow.com/questions/57189359/magento-2-how-to-add-dynamic-url-for-ajax-call-from-uic...

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

View solution in original post

1 REPLY 1

Re: Linking properties of UI components

Hi @timon_heuser ,

 

Please check below url for adding ui component fields dependency in ui_form.xml

https://magento.stackexchange.com/questions/153740/magento-2-field-dependency-in-ui-form

https://stackoverflow.com/questions/57189359/magento-2-how-to-add-dynamic-url-for-ajax-call-from-uic...

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!