Hey!
I have 4 inputs required (using the wix function to connect inputs with the database): email, password, company name and profile image.
When the user clicks submit, the form is submited instead of showing the failure message and staying on the page.
What should I do?
Thanks!
PS: The submit action is also via WIX functions, not with code.
1 Like
So you have email, password, text and image as required fields? And what does get stored? Do you have the Dataset setup with Write Only Permissions?
It’s write and edit because is the edit profile form… so when they sign up, they just have to put their email and passowrd, but once they come to edit their profile, I want them to upload all that fields…
Okey, can you screenshot the data collection you work it so I can see the fields and also the page with the elements on.
Ok so even if they just click submit the empty values gets saved and does not demand you to have any values in them?
yes, when u go to the page, the password and company name fields are in red, so u can think that u should write in them, but the profile image is not being red. anyway, if u just click submit with the red fields empty, its saved and not failing…
Hey
I think this is because you have read & write so it can update currently loaded values. Regarding the image make sure that the uploadButton is set to required.
All this handling is a bit non stable if you use datasets I guess. I prefer to use code so I can verify exactly what I need in all fields before updating.
but is it better to use code when we are focusing on page load speed? because I feel if I write too much code my website will be too slow…
is it impossible to have a read and write page and have required inputs?
maybe just with a code that says: if that fields are < 0 the submit button is enabled?
It is not code that makes a page slow, I do a lot of heavy pages with more than a 1000 lines of code in one page and that loads as fast as a Wix page with basically no code and just datasets.