Wix.Locatin() is not working

Wix.Locatin() is not working on my end or I just did it wrong. Please see the images below.

The highlighted in yellow button is the button84

The link is not working. I don’t know what is happening.

For more information here is the editor page —> https://editor.wix.com/html/editor/web/renderer/edit/0f2a2a2e-c0ef-4f72-98b3-679302cef3fb?metaSiteId=a6fdb801-9819-4822-8a0c-9d8fd99355b4&editorSessionId=D61690DC-730C-40DD-B1AC-311FCDAA3CC5

And the Live page —> https://evanrjenkins.wixsite.com/dogservice

I need a immediate response.

Thank you,
Geo

Hi Geo,

happy to see you are making a good progress with your site! :slight_smile:
i do not think this is an issue with wix.location, did you try to put the url in your browser directly? i.e. https://evanrjenkins.wixsite.com/dogservice/regdog-2/add-dog/1234 ?

maybe it is still another aspect of the previous question about single form inserting data to multiple collections. i recommend you look at other popular sites that have similar challenge and how they go about it.
maybe think about a single page with the title ‘Dog owner details’ it will allow you to add or edit your details as a dog owner, just below that form you can also display the dogs this person have. maybe a repeater, or a gallery of the dogs etc. just next to that add the capability to edit an existing dog details and an ‘add a new dog’ button which will take you to another page or create another form in the existing page to do that.

i am trying to recommend a way that will first work so you can make a progress with the site and maybe polish that some more in the future :slight_smile:

Shlomi

Geo,

please have a look at this example https://www.wix.com/code/home/video-database
although it is not a category, the ‘grouping’ is the owner person. you might want to think about the challenge this way, just as a first phase

Shlomi

To Shlomi ,

Thank you again for assistance,
but I think the problem here is that, the wixData.query connects on the database1 (regdog), so wixLocation.to ( currentuser ) works only in database1 (regdog).
Is there away to connect two database in one wixData.query?

You can use join, but in your case since there are multiple dogs, you might also think about loading the dogs onready in another query

Do you have some example Shlomi? :slight_smile:

Your page is quite unique, but have a look at that video i sent, if you’ll still need help ill try to create one on the beginning of next week