DEV Community

Discussion on: Conditional Tasks in Dynamic Forms

Collapse
 
coffeetea profile image
Vitalii Baziuk

Great to read this!
And I'm really excited about Advanced stuff part, it took a few mins more to get it clear for me but then I've understood how powerful it is!

Btw, can we update current control value using some custom matcher (for example, based on other control value)?

Collapse
 
matheo profile image
Mateo Tibaquirá

sure! having access to the control Form Instance allows us to manipulate it.
Additionaly we have API to query other controls, API for visibility, API for events (hooks, call custom methods inside the DynForm instance), etc.

The matcher have access to the DynTreeNode of the configured control and from there you can do any custom advanced stuff ;)