You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently I try to implement a form with two fields, where the value defined in the first field changes the data in the second field. The data is retrieved via an api call in the custom widgets, which is used for the second field. Unfortunately have I not found a solution to pass the data to between fields.
I tried the following solutions:
Dynamic dependency
The scheme has a dependency defined where for each possible value in field 1, the title of the second value is set. This works and the component get re-rendered. I can set the value via a property. But the component for field 2 gets recreated when I choose a value and also the chosen value is not selected
Setting a const in the properties
I changed the scheme of point 1 to add a const property which contains the value of field 1. This is now available in the component and the selecting works now. Unfortunately do I now retrieve an error that the value should be equal to const.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
currently I try to implement a form with two fields, where the value defined in the first field changes the data in the second field. The data is retrieved via an api call in the custom widgets, which is used for the second field. Unfortunately have I not found a solution to pass the data to between fields.
I tried the following solutions:
Dynamic dependency
The scheme has a dependency defined where for each possible value in field 1, the title of the second value is set. This works and the component get re-rendered. I can set the value via a property. But the component for field 2 gets recreated when I choose a value and also the chosen value is not selected
Setting a const in the properties
I changed the scheme of point 1 to add a const property which contains the value of field 1. This is now available in the component and the selecting works now. Unfortunately do I now retrieve an error that the value should be equal to const.
Do you have any ideas how to solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions