Skip to content

Add custom javascript code in modal forms #142

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

Closed
devkapilbansal opened this issue Dec 3, 2020 · 3 comments
Closed

Add custom javascript code in modal forms #142

devkapilbansal opened this issue Dec 3, 2020 · 3 comments
Assignees
Labels
discussion Further information is requested Q&A Questions and answers

Comments

@devkapilbansal
Copy link

devkapilbansal commented Dec 3, 2020

Rather than a question or a bug report, it would be a suggestion that can be helpful for the users.

Although modal forms look good but I want to add my custom javascript code that is not possible.
Like if I want to pass some value from the base page to the popup after is get loads.

I have to make change in forms.js file to make it happen.

But it would be good if these can be customised too easily.

Correct me if I am wrong. Thanks

@trco trco added the Q&A Questions and answers label Dec 12, 2020
@trco
Copy link
Owner

trco commented Mar 21, 2021

@devkapilbansal Can you please accurately define your use case and other possible use cases for your proposed functionality?

@trco trco added discussion Further information is requested and removed Q&A Questions and answers labels Mar 21, 2021
@devkapilbansal
Copy link
Author

@trco recently I was building an e-commerce project where it was needed. I had some information of the user on my main page and what I want was to fill my form with that information.
I want these forms to have an additional area for extra code that can be triggered after form is loaded successfully.

@trco
Copy link
Owner

trco commented Sep 2, 2023

Custom JS code can be added to the modals as described in this issue #158. This information will be added to the docs.

@trco trco closed this as completed Sep 2, 2023
@trco trco added Q&A Questions and answers discussion Further information is requested and removed discussion Further information is requested labels Sep 2, 2023
@trco trco self-assigned this Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Further information is requested Q&A Questions and answers
Projects
None yet
Development

No branches or pull requests

2 participants