Tagged: hidden field
- This topic has 5 replies, 2 voices, and was last updated 5 years, 12 months ago by
kplaneta.
-
AuthorPosts
-
-
February 8, 2016 at 9:02 am #5874
kplanetaMemberPiklist v. 0.9.9.7
Wp v 4.4.31. When a hidden field is within an add-more group and a new group is added, then the hidden fields gets the value of the hidden field from the first group and not the value defined in the settings.
Example.
Let’s say we have a simple add-more group “Person” with fields “name” and a hidden field which holds a random ID. The value of this field is generated with JS when somebody enters a name. The value isn’t generated when one is already present.
Now, when we create the first person, the value in the hidden field is empty (it was set to be empty in the fields settings php) so it gets filled with a random number by the JS. Now, when we create another person, the value of this field is empty again so once again it gets filled with JS. So far so good.
We save the page. It refreshes. We add another person. And this is where the error shows. This time the value of the hidden field is not empty but gets copied from the first person!
2. When a string with a coma gets entered in a hidden field, than on first save it is returned intact. However on the second save, it gets turned into an array which seems to get another “level” each time the page is saved.
-
February 8, 2016 at 2:07 pm #5879
-
February 8, 2016 at 2:59 pm #5880
kplanetaMemberIt’s basically the same as in this thread
-
February 8, 2016 at 3:01 pm #5881
-
February 10, 2016 at 10:33 pm #5893
-
February 15, 2016 at 8:13 am #5927
kplanetaMemberUpdate. I’ve found out that whatever data I put into a hidden field (be it a text, digit or number) I get an array as return value.
-
-
AuthorPosts
- You must be logged in to reply to this topic.