formio / formio.js

JavaScript powered Forms with JSON Form Builder

Home Page:https://formio.github.io/formio.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Select component refreshOn based on select in a different container

tiberiu89 opened this issue · comments

Hi,

Short story, I have groups of components(a hidden and a select) that represents an enumeration value(group and code)
The issue is I have a form where I need to chain 3 of these groups(held in a container) and they need to refresh when the select they depend on changes. From what I can tell there is a logic in place that does not allow this. Is there a workaround? It would be really nice if refreshOn can accept nested keys, like select1.code.

If this is not possible, any suggestions maybe on how to do this the other way around, force refresh the select with custom javascript, by checking if the parent select changed value. It sounds like I need to store some state in the components itself(maybe leverage its JSON schema?) I'm open to anything that could work, no matter how hackish.