• Resolved arr0w

    (@arr0w)


    Hello

    I have have page where both the signup and record shortcodes are used simultaneously, but I can see that they are using the same IDs for the input fields and this gives errors in the console. Can I use my custom template to change the IDs for either signup or record form? I thought about using javascript to do something like “foreach input field in form change ID”

    Any thoughts?

    /Jacob

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    The is fairly easily solved using a Custom Template for one or both of the shortcodes.

    For example, the default signup template uses a method like this to print the input:

    <?php $this->field->print_element_with_id(); ?>

    you can replace that with a method that does not automatically include an ID.

    <?php $this->field->print_element(); ?>

    If you need to set the ID, you can do that before the field is printed like this:

    <?php $this->field->attributes['id'] = "some_unique_id"; ?>

    Thread Starter arr0w

    (@arr0w)

    Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Signup and record on same page (non-unique ID)’ is closed to new replies.