How to get form page url

Hi!

  1. I will have several services, one page for each service. In each page there is a customer application form. How can I solve this need - in applications database, I need to see from which URL user has submitted the form. Namely, how can form read and pass on to application database form source url?

  2. After form submit (which happens successfully), all fields are shown with error styling (red border). That should not happen. How can I fix this?

BR,
Ansis

2 Likes

Hi Ansis,

  1. To retrieve the current URL, you can use Wix Location:

import wixLocation from ‘wix-location’;
//…
let url = wixLocation.url;

  1. When adding new fields, you specify the field type . (Boolean, text, date, file, etc).


This does not prevent you from programmatically updating the field to an incompatible type, however an error notifying you about the type error will be shown.

Hi Ido, thank you for your reply! Still don’t get it. Maybe I can reach you privately and you could help out with this as a small freelance task? My skype: ansis.lipenitis

Hello! we are trying to get this to work on our site as well - i’d be happy if someone who is interested in helping to resolve this will contact me at gil@hashunited.com

Thanks!
Gil

Hello, could you solve that issue with the page URL? I have the same problem.

Hi Ido, i have also the same problem and need help please. Would you be possible to contact me also to make its working. We are ready to give it also as a freelancer task. My Email a.bluhmberg (at) pcm-cranes (.) com