I'm need to set values (hidden input) for some hidden component based on conditionals.
I wrote a patch that allow this feature but i have to add a checkbox & a textfield value to set on each condtionnal form element (this patch attached is not for commit).

Can it be possible to have a hook that allows to add some other actions like "hide" & "show" ?
In my case, i will implement this hook and add a new action "Hide & set".

Comments

quicksketch’s picture

Status: Active » Needs work

Hi there, thanks for opening an issue. I didn't realize there was a patch attached here, so I'm moving this to "needs work" (I don't think it's ready as-is). This issue probably should have been part of #1949254: Support extra conditional actions besides hide and show (i.e. "clear" or "set value"), where we already have an issue for this particular feature request.

This sort of feature is definitely on our radar, but I don't know how long it will take to get to it.

danchadwick’s picture

Issue summary: View changes
Status: Needs work » Closed (duplicate)
Related issues: +#2352373: Set component values based upon tokens and/or other conditional values