DEV Community

Josh Nederveld
Josh Nederveld

Posted on

Copy values in FormAssembly HTTPS Connector

FormAssembly's HTTPS Connector is a little dopey when it comes to drop-down values-- they really need a button in here that lets you copy everything from the left column to right. But until we have that, we can use some jQuery to copy it in the Inspector.

Before: values in the left column

(function ($) {
    "use_strict";

    $('pick-tfa_## .picklist td:first-child').each(function (index) {
        var value = $(this).text();
        $(this).next().find('input').val(value);
    })

}(jQuery));

After: values in the right column

Top comments (0)