Password field on custom form


(Mahearnpad) #1

Hi

 

I have a custom form with several fields, including a password field type. For some reason the password field's value is not getting submitted with the rest of the form values. Can someone tell me what I'm doing, or not doing, to make this happen?

 

tia

Michael


(Bart Banda) #2

Not sure, hard to tell without seeing the form itself and testing it. If you debug using your browser dev tools or firebug, can you check out the POST request and see if the password field is included in that request and if it is sending a value?


(Ashish Karelia) #3

Hi

 

I have a custom form with several fields, including a password field type. For some reason the password field's value is not getting submitted with the rest of the form values. Can someone tell me what I'm doing, or not doing, to make this happen?

 

tia

Michael

 

Hi Michael,

Are you getting any errors in the error log?

Sounds like it could be issue as mentioned on bug #6325 Assets, like Page Account manager, using password field for sign up throw "undefined index: confirm_field" error.

 

Ash


(Mahearnpad) #4

No errors Ash.  I ended up creating a hidden field in the custom form. Using JS, I'm putting the value of the password field into this field, and using this to post to the API. This seems to work OK, but I'd rather not have to do this kind of "hack".

 

EDIT:  and I've had a look at the bug you mentioned - it's listed as fixed in our version of Matrix.

 

M


(Ashish Karelia) #5

The bug tracker is a bit tricky. If it says fixed on 4.14.2, the release for the patch is actually on 4.14.3. 


(Mahearnpad) #6

Yeah, that should be fixed on ours, as we've got 4.18.4.


(Ashish Karelia) #7

That sounds like an issue. I tried on my local system but that seems to be working alright. If this is an ongoing issue, I'd suggest raising a support ticket request and get it reviewed by our Technical Consultant who can further pass to Squiz Labs if they can confirm it to be a bug or a non-designed behaviour. 

 

Ash