is there a way to make a component with dynamics inputs ? #397
-
I am working on a form where I want to add a select option with two choices: Redirect to Page and Redirect to Route. Depending on the selected option: If the user selects Redirect to Route, I want to display inputs for Action and Action Type. Please guide me on how to ensure the pages dropdown is hidden by default. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use the input VvvebJs/libs/builder/components-elements.js Line 519 in 409ede1 In the gallery component groups is used to show/hide inputs for masonry layout switch like images per rows VvvebJs/libs/builder/components-elements.js Lines 470 to 484 in 409ede1 Also every input has a This method is used in embed video component to hide/show poster image for html source, you can view the code here https://github.com/givanz/VvvebJs/blob/master/libs/builder/components-widgets.js#L220-L222 |
Beta Was this translation helpful? Give feedback.
You can use the input
group
attribute that will set adata-group
attribute on the input containerVvvebJs/libs/builder/components-elements.js
Line 519 in 409ede1
In the gallery component groups is used to show/hide inputs for masonry layout switch like images per rows
VvvebJs/libs/builder/components-elements.js
Lines 470 to 484 in 409ede1