I want to clone a record, and reset some of the fields on the Edit form. The function nuOnclone as described in Javascript functions should do that. I activated the Action button Clone. When clicked, the record is cloned, but the fields are not cleared (they are when using nuLoadEdit).
I have this (and more) on the Javascript of the form:
Code: Select all
function nuOnClone(){
$( '#chrom_location').val('');
$( "#genpos_strand").val('');
$( "#genpos_start").val('');
$( "#genpos_end").val('');
$( "#prim_name").val('');
return true;
}