-
Notifications
You must be signed in to change notification settings - Fork 100
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
Prefill fields from url-parameters #638
Comments
To make the business value a bit clear: With this feature you can create auto generated Form-Links for customers with prefilled user IDs or so. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
gforms does support this, see https://trevorfox.com/2015/06/dynamically-pre-fill-google-forms-with-mailchimp-merge-tags/ |
there are a few components to this:
var params = (new URL(document.location)).searchParams;
for (var [param_key, param_value] of params.entries()) {
var formElement = document.getElementById(param_key);
if (formElement) {
formElement.value = param_value;
}
}
|
if you want you can give it a try and work on this :) We would be very happy if you can create a PR for this issue :) |
Given the development in #1382, is this still the suggested approach for implementing this? I could see the two methods interfering with each other. I assume the localStorage should take precedence?
|
@Schlepptop that sounds like a question of user intent. i wonder if there is an easy answer there. |
The safest approach would probably be to handle this with a modal as in #1310. |
Nextcloud (please complete the following information):
Hello
it is possible to send values for a Form via get?
I have a form with the field name and I want to create a link like
/index.php/apps/forms/eQHeX2MT6MbfErg4zwztzf?name=Anton
it is possible?
Thank you
The text was updated successfully, but these errors were encountered: