Toms helped me already regarding a similar question: https://forums.nubuilder.cloud/viewtopic. ... 5&start=10
I'm trying to insert many fields of one form to another one. So here is what Toms gave me as a solution, worked for the primary key of the form only. On the first form:
Code: Select all
function nuSelectBrowse(e) {
var r = $('#' + e.target.id).attr('data-nu-primary-key');
window.ENTREPRISE_ID = r;
nuForm(nuGetProperty('form_id'), r, '', '', '1');
}
Code: Select all
if (nuFormType() == 'edit') {
$("#contact_entreprise_id").val(window.ENTREPRISE_ID).change();
}