- This topic has 2 replies, 2 voices, and was last updated 2 years, 1 month ago by .
I have multilevel nested groups:
Question (clone true)
-Answers (clone true)
I would like to add a hidden field which would be a unique id of each answer.
If I add ‘std’ => uniqid() for the hidden field all the answers will have same unigid value. Is there possibility to use ‘type’ => ‘hidden’ field and add a callback function which would echo a std value e.g. with uniqid() when new answer is added from the add button on admin side? On the admin side this unique id is not needed thus hidden field, but on the front end side code I would need this unique id to identify the answer to update statistics of answers.
Or is there some other way to get the unique id of meta values (similar to unique post id’s)? As if I rely to answer/question counter then the statistics are messed when questions/answers are deleted.
- You must be logged in to reply to this topic.