Form fields random ID (few same forms on the page)
-
Hi!
Thank you for this awesome plugin that everyone is using.
I’ve got a question about dynamic ID for input fields.The thing is I have a form template with <labels> inside for Floating labels effect (Example: https://css-tricks.com/float-labels-css/). So a have such template:
<div class="form-group"> <label for="first-name">Your first name</label>[text firstname class:field id:firstname placeholder "First name"] </div>It working nice, BUT if there is only one form on the page. If I add one more – each label leads to first element with
IDname which is set inforparameter.So all labels from second form lead to the first one. I was trying to find a solution and I couldn’t think of anything better than generate random
IDandFORHow can I achieve that? Maybe some form template hook? Maybe some shortcode or parameter?
Thanks.
The topic ‘Form fields random ID (few same forms on the page)’ is closed to new replies.