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

Reset data of option page #1497

Open
valentinsld opened this issue Sep 11, 2023 · 0 comments
Open

Reset data of option page #1497

valentinsld opened this issue Sep 11, 2023 · 0 comments

Comments

@valentinsld
Copy link

Hello !

I have created a option page with the snippet example and I would like to create a button to reset all fields with own values.

So my first question is : "How can I reset all fields (and repeatable groups) on a option page ?"
And the second is : "How can I set values for field (and repeatable group) on a option page ?" I know CMB2 have 'default' for each fields, but how it's work for repeatable group ?

I'm sorry if it's writed on doc, but I don't found it
I thank you in advance ✌️

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