Thanx for the help Benjamin!!!
I tried to modify the code the way you had directed , but still keep getting error message while trying to save the form.
For some reason the data is not validated when I click " save" , hoped that at least the contact window was presented to the analyst selected the correct value ...
I made some modifications to the code , but the error persists.
Some ways I've tried...
function zseta_tec_responsavel() {
if ("$args.category.sym".indexOf("Aplicações Nacionais.") == 0){
document.main_form.elements["SET.zassignee_exec"].value = "E5AEC8D1815CA248B9E2316774BAF20D";
document.main_form.elements["zassignee_exec_combo_name"].value = "Costa de Queiroz, Marcelo ";
}
}
=======
function zseta_tec_responsavel() {
if ("$args.category.sym".indexOf("Aplicações Nacionais.") == 0){
document.main_form.elements["SET.zassignee_exec"].value = "$args.zassignee_exec";
document.main_form.elements["zassignee_exec_combo_name"].value = "Costa de Queiroz, Marcelo ";
}
}
=======
function zseta_tec_responsavel() {
if ("$args.category.sym".indexOf("Aplicações Nacionais.") == 0){
document.main_form.elements["SET.zassignee_exec"].value = "Costa de Queiroz, Marcelo ";
document.main_form.elements["zassignee_exec_combo_name"].value = "Costa de Queiroz, Marcelo ";
}
}
I feel I am close to the solution , some small attribute to validate the contact name on the form ...
I thank you again to help!!!!!