Input field populated with jquery are not appearing in the submitted entries
-
Hello,
I have a dynamically populated select field (receives ajax data depending on a previous select field selection) when submitting the form whatever the user selected on the field is not transmitted and does not appear in the entry next to the field on the back-end. I thought that might come from select2, or forminator only accepting previously set options in the backend, so I also tried to copy the select value and copy it to a normal text field, or a text area, in everycase anytime I try to populate a field using jquery, it seems, this field does not send is value to the form.
This is the jquery code I’m using to set the value in the field, the value seems propely set to the input field as if i try to check them using console.log() it shows alright :
$('#select-2 select').on('change', function() {
var selectedText = $("#select-2 select option:selected").text();
$('#text-3 input').val(selectedText);
});
$('#text-2 input').on('change', function() {
var selectedVal = $("#text-2 input").val();
$('#textarea-2 textarea').val(selectedVal);
});I also tried changing form submitting from ajax to post without success, is there a proper way to interact with forminator in ajax that I am missing ?
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.