Skip to content

Commit

Permalink
default values example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kompoth committed Nov 10, 2023
1 parent c99124a commit fd375be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ const values = {
description: 'This is a default description.',
};
api.openModalForm('example-form', { values });
const modalForm = app.plugins.plugins.modalforms.api;
const result = await modalForm.openForm('example-form', { values: values });
```
In this example, the form will open with the `title` field pre-filled with `My Default Title` and the `description` field pre-filled with `This is a default description.`.
Expand Down

0 comments on commit fd375be

Please sign in to comment.