Validation on access by user filed

k0d1

New Member
I make in the backend a form with a databasejoin filed width "Form (edit)" access using "Special" and "user filed" access using "user id" to allow edit options only for owner of the record. I set also not empty validation.
On the frontend if I submit the form with the empy filed so I see the validation error but the filed in the readonly (not editable) state.
When I change "Form (edit)" access to "Registered " the validation stated form become appropriate and the filed become editable.
It seams that the form in validation state don't recognize correctly the access rights based on user fileld.
How to fix it?
 
Hmmm, sounds like a bug in the re-display of the form after the validation failure. I'll set up a test case and fix it in the next day or so. I just got back from a long road trip, so it'll take me a few days to catch up. Bump this thread if you haven't heard from me within 2 days.

-- hugh
 
Hmmm, sounds like a bug in the re-display of the form after the validation failure. I'll set up a test case and fix it in the next day or so. I just got back from a long road trip, so it'll take me a few days to catch up. Bump this thread if you haven't heard from me within 2 days.

-- hugh
Dear Hugh!
I bumped this thread because I haven't heard from me within 2 days. I miss your advice very much!
 
I don't seem to be able to replicate this one. I have a join and a user element, I set the join with edit ACL "Super Users" and "user field" (as per your description) and a "not empty". I can set the join to no selection, submit, and it still allows me to edit after the validation fail.

Are there any other ACLs in play? Like, maybe on the user element? Any other form plugins?

If the form is in any way complex, can you try creating a really simple test form, with just id, join and user, see if you can replicate the same results with that?

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top