AnsweredAssumed Answered

%25 Filter Javascript

Question asked by diegolimabsb on Feb 27, 2015
Latest reply on Mar 2, 2015 by diegolimabsb

Hey guys!!!

 

I need to set a specific contact on a customized atribute every time a category is selected.

 

If the category is "A" the “executor” will be " ABCD " .

 

I created a javascript with this functionality, however, I would like to filter only the categories beginning with a specific value, for example " Application % " so that every time this category is selected the executor will be " ABCD " .

 

Could help me with this code ?

 

I saw that the 25% is the reference to the % in javascript, but didn't work...

 

The code:

 

function zseta_tec_responsavel() {

                    if("$args.category.sym" == "Aplicações Nacionais.%25"){

                    document.main_form.elements["SET.zassignee_exec"].value = "";

                    document.main_form.elements["zassignee_exec_combo_name"].value = "CColares Nehme, Thiago ";

                   }

}

Outcomes