Save dropdown item name and value

Home Forums Quform WordPress Save dropdown item name and value

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17207
    jerkski
    Participant

    Hello, is it possible to save both the dropdown name and value to a database? Right now, it saves the value just fine, but I have a need where quform saves to a remote database that does not have a reference to the ID and therefore it needs the name as well. Thank you!

    #17209
    jerkski
    Participant

    Done… added a hidden element and an html element. Pasted this in the html, first (4_87) references dropdown, the second (4_129) is the id of the hidden element that gets set to the dropdown name, stores it and saves to DB!

    <script>
    jQuery(document).ready(function ($) {
    $(‘.iphorm_4_87’).change(function () {
    $(‘input[name=”iphorm_4_129″]’).val($(‘option:selected’,this).text());
    }).change();
    });
    </script>

    #17234
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy