• Resolved Andy Galaxy

    (@andy-galaxy)


    Is it possible for you to enable that when a new field is created it gets assigned a unique ID? As it stands a all text fields get created with a class and a data-id – but there’s no IDs. Regards, Andy

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author mondula2016

    (@mondula2016)

    Hi,
    this is a PLUS question and i answered that on another page.
    Due to the forum rules i close and mark this as solved.

    Thread Starter Andy Galaxy

    (@andy-galaxy)

    Thanks,
    So where do I find the PLUS forum? Cheers

    Plugin Author mondula2016

    (@mondula2016)

    not here. ??

    • This reply was modified 6 years, 5 months ago by mondula2016.
    Thread Starter Andy Galaxy

    (@andy-galaxy)

    Actually looking at this – I’m not sure it is a PLUS question (although I did go ahead and buy the upgrade) as the answer was to edit a file in the opensource free plugin file includes/lib/class-mondula-multistep-forms-block-text.php at line 31 by adding id="<?php echo str_replace(' ', '-', strtolower($this->_label)); ?>"

    It works for me as it was suggested by Nicolas Hollman (is that you?) via email.

    All the best ??
    Andy

    Plugin Author mondula2016

    (@mondula2016)

    …it is one of our guys.

    So everything seems to be ok for you and i will close this one.

    best regards.

    Thread Starter Andy Galaxy

    (@andy-galaxy)

    I see in /multi-step-form/includes/lib/msf-block-text.class.php you have commented // TODO: add text field label variable and ids

    I have edited this to work using
    <input type=”text” class=”fw-text-input” data-id=”text” id=”<?php echo str_replace(‘ ‘, ‘-‘, strtolower($this->_label)); ?>”>

    This creates an ID from the given label.

    When will you be implementing a proper fix so that I don;t have to edit every time the plugin is updated>?

    Awesome thanks, Andy

    Thread Starter Andy Galaxy

    (@andy-galaxy)

    As of M.S.F 1.3.2 this issue is solved – input fields get custom ID (using label).
    So for example, if you have a numeric input field with the label “Your age” it will become:
    msf-numeric-your-age

    Good work @mondula2016

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Field ID’ is closed to new replies.