hi
i have a form and i added a list below it.
both is working fine.
my question is how to add a button that will copy a fields value, copying data from the list to the form.
what i tried is to add a js plugin in the list. i tried to use the js code below but it does not work.
records_field___empty_id = database join element that is empty. this is in the form
user_prle___datatocopy = field element that contains the value to copy, this is in the list
BTW, im only copying 1 field to another. not the entire row
thank you
i have a form and i added a list below it.
both is working fine.
my question is how to add a button that will copy a fields value, copying data from the list to the form.
what i tried is to add a js plugin in the list. i tried to use the js code below but it does not work.
records_field___empty_id = database join element that is empty. this is in the form
user_prle___datatocopy = field element that contains the value to copy, this is in the list
Code:
$('records_field___empty_id').value = $('user_prle___datatocopy').getValue();
BTW, im only copying 1 field to another. not the entire row
thank you