Skip to content
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

Update my settings based on how many elements are inside the block #189

Open
Daniel-Fo opened this issue Jun 19, 2024 · 0 comments
Open

Comments

@Daniel-Fo
Copy link

I am trying to create a block which has a button or dropdown that lets you add or select how many items are in the block. How can i dynamically update my settings folder to create new fields for these new items.

For example: I have a block that contains 4 images that are displayed in a standard bootstrap grid, in the settings i have a url input for each image's url.. I have a button that when pressed it adds a 5th image to the block, I would need it to also create a 5th input to take the url for the new image. It should dynamically let me add and remove images and their urls.

I am able to create the button/dropdown but my issue is dynamically creating new fields.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant