Open TripleNico opened 4 years ago
We have a resolution for that
Met vriendelijke groet, Best regards, Mit freundlichen Grüßen, Cordialement, KOOMBA b.v.
Abdon De Kousemaeker Mobile: +31 612 8380 12 Email: abdon@koomba.eu
Tel: +31 10 204 55 25 | www.koomba.euhttps://www.koomba.eu/ | Post: Postbus 1632 - 3260 BC OUD-BEIJERLAND | Visit: Brainpark II - Lichtenauerlaan 102 - 3062 ME ROTTERDAM
From: TripleNico notifications@github.com Sent: Thursday, May 7, 2020 11:13 AM To: smartstore/SmartStoreNET SmartStoreNET@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [smartstore/SmartStoreNET] Form Configurator: Implement URL query parameters (#1878)
For example a webform with the elements:
Now i have a url with the values for those fields: http://www.SomeShop.com/Contact?Name=MyName&Company=MyCompany&Email=MyEmail
When i enter the URL i would like to see that the elements get automatically filled in so i get:
For example like these guys: https://ninjaforms.com/blog/how-to-auto-populate-form-fields-using-query-string/
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/smartstore/SmartStoreNET/issues/1878, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH56W55HOWXTNO66JW7WS63RQJ3RDANCNFSM4M3EYECA.
Hi, this can be done with a little javascript. Regards, Michael
Thanks for your reply. Could you explain how?
And also can’t you add it to the feature list? Because we would like to use it often and it’s also implemented in the framework https://docs.microsoft.com/en-us/dotnet/api/system.web.httprequest.querystring?view=netframework-4.8 so hopefully it shouldn’t be to hard?
Hi Michael, Great this feature get's added! appreciatie it. Could you describe in the meantime how to implement your Javascript solution? I guess it's adding a Javascript file with a function to the root \Scripts folder?
If you only need to implement this on one page you can also do this by adding the javascript code to a Topic which is rendered as a Widgt. Admin > CMS > Topics. You just need a Javascript function for the get parameters and then paste them into the desired form elements e.g. $("#myinput").val(mygetparam);
Hi Nico,
Call Gabriëlla tomorrow, see knows how to do so.
Met vriendelijke groet, Best regards, Mit freundlichen Grüßen, Cordialement, KOOMBA b.v.
Abdon De Kousemaeker Mobile: +31 612 8380 12 Email: abdon@koomba.eu
Tel: +31 186 205 955 | www.koomba.euhttps://www.koomba.eu/ | Postbus 1632 - 3260 BC OUD-BEIJERLAND
From: TripleNico notifications@github.com Sent: Thursday, January 7, 2021 2:59 PM To: smartstore/Smartstore Smartstore@noreply.github.com Cc: Abdon De Kousemaeker abdon@koomba.eu; Comment comment@noreply.github.com Subject: [smartstore/Smartstore] Form Configurator: Implement URL query parameters (#301)
For example a webform with the elements:
Now i have a url with the values for those fields: http://www.SomeShop.com/Contact?Name=MyName&Company=MyCompany&Email=MyEmail
When i enter the URL i would like to see that the elements get automatically filled in so i get:
For example like these guys: https://ninjaforms.com/blog/how-to-auto-populate-form-fields-using-query-string/
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/smartstore/Smartstore/issues/301, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH56W53DRZVELH2BARQRCRTSYW4ZRANCNFSM4VZAR2UA.
For example a webform with the elements:
Now i have a url with the values for those fields: http://www.SomeShop.com/Contact?Name=MyName&Company=MyCompany&Email=MyEmail
When i enter the URL i would like to see that the elements get automatically filled in so i get:
For example like these guys: https://ninjaforms.com/blog/how-to-auto-populate-form-fields-using-query-string/