-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form structure changed with path_selector widget #3845
Comments
Do |
Also just to close the loop on this: here's the 3.1.x implementation of that same ondemand/apps/dashboard/app/javascript/dynamic_forms.js Lines 419 to 423 in f1e1a96
Though - you should be careful here because the implementation has changed and will need updating again once you upgrade to 4.0 (the next release). But that said - |
I tested the data-hide functionality and it works like a charm. Thanks for the information! |
OK - so I take it this ticket is good to close? |
Yes, good to close. |
We recently updated our OnDemand installation to 3.1.7 and are now in the process of updating all of our interactive apps to use path_selector instead of data-filepicker.
We have applications that provide dynamic forms with logic in form.js to hide/unhide fields. The javascript is straightforward:
This works fine for data-filepicker, but with the new path_selector widget it doesn't hide the "Select Path" button, only the text field and help text.
Examining the HTML, it looks like other fields are wrapped in a single div, while the path_selector widget has a div for the text field and help text inside another div that also includes the "Select Path" button.
We could add some extra logic to form.js to jump up one more parent for these particular fields, but I think it would be helpful if the path_selector widget divs were structured the same way as other fields.
The text was updated successfully, but these errors were encountered: