2
How can I get data from all the existing Rms on a page? I have a form with the name "orcamentos" that I can send the fields but I have at least three more that are inserted via include and the fields of these Forms I’m not being able to recover.
I would like to pass all fields, regardless of the name.
Before I was doing so:
document.orcamentos.submit();
This sends all form data with the name "budget", then in trying to send all fields independent of the name tried this:
$("form").submit();
But send the fields of the form "budget" and the others inserted by include no.
Performing some tests I realized that the variables that are not in the form "budget" are available and I was able to rescue them via Ajax, as follows:
var sVazaoEta = $("#Vazao_eta").val();
var sTipoVazaoEta = $("input[name='TipoVazao_eta']:checked").val();
var sFiltrosEta = $("input[name='Filtros_eta']:checked").val();
Is there any possibility of passing these variables to the detail page that is triggered by the form’s Submit, because I am using the:
$("form").submit();
How do you upload the form to the server side? via ajax? And why not load the new fields into the existing form without putting more Forms on the page?
– Sergio
The Forms that are inserted via include need to be filled by the user and are in the details of a shopping cart, for example by clicking "+ Customize Quote" I show this form that are entered by include according to the product category, the fields that are being sent correctly are the user data and are out of this cart. See this page for details: http://limpida.ind.br/orcamentos.php?add=532
– adventistapr
Take a look at that answer
– Kazzkiq
Thanks @Kazzkig, interesting, but I need to fire "all" the Forms in a single button.
– adventistapr