• Resolved pascal1144

    (@pascal1144)


    Hello,

    We use CF7 for our forms on our WordPress.

    We have three forms, all three loading identical fields. We have one field that is auto filled with a variable value.

    In two of the three forms the value is added without issues and is shown and sent along in the mail. On the third, it doesn’t show up.

    This is the code I use:
    Form1: [text* autonaam readonly id:carname “naam auto”]
    Form2: [text* autonaam readonly id:carname2 “naam auto”]
    Form3: [text* autonaam readonly id:carname3 “naam auto”]

    The third form doesn’t show the variable value, unlike the two others.

    I dunno what goes wrong, but it’s important that it gets fixed.

Viewing 1 replies (of 1 total)
  • Thread Starter pascal1144

    (@pascal1144)

    ?_?
    I forgot to look into the jQuery that was creating the variables.

        <script type="text/javascript">
            jQuery(document).ready(function($) {
                $('#carname').val('<?php echo $car->merk . " " . $car->model . " " . $car->type; ?>');
                $('#carname2').val('<?php echo $car->merk . " " . $car->model . " " . $car->type; ?>');
                $('#carname3').val('<?php echo $car->merk . " " . $car->model . " " . $car->type; ?>');
            });
        </script>
    • This reply was modified 6 years, 5 months ago by pascal1144.
Viewing 1 replies (of 1 total)
  • The topic ‘One of 3 fields not filled with variable value’ is closed to new replies.