Alguém sabe como resolver esse problema ? meu arquivo displayFields não html
function displayFields(form,customHTML){
try {
var usuario = fluigAPI.getUserService().getCurrent();
var current_date = getDayDate();
var activity = parseInt(getValue("WKNumState"));
if (activity != 0 || activity != 5){
form.setValue("soli_numero", getValue("WKNumProces"));
}
if (activity == 0 || activity == 5){
form.setValue("soli_data", current_date);
form.setValue("soli_nome", usuario.getFullName());
form.setVisibleById("panel_avaliacao", false);
form.setVisibleById("panel_analise", false);
form.setVisibleById("panel_registro", false);
}
if (activity == 6){
form.setValue("avaliacao_resp", usuario.getFullName());
form.setValue("avaliacao_data", current_date);
form.setVisibleById("panel_analise", false);
form.setVisibleById("panel_registro", false);
}
if (activity == 8){
form.setValue("analise_resp", usuario.getFullName());
form.setValue("analise_data", current_date);
form.setVisibleById("panel_registro", false);
}
if (activity == 10){
form.setValue("registro_resp", usuario.getFullName());
form.setValue("registro_data", current_date);
}
} catch (error) {
log.warn("displayFields - catch error: " + error)
}
}
function getDayDate(){
var today = new Date();
var year = today.getFullYear();
var month = (today.getMonth() + 1) < 10 ? '0' + (today.getMonth() + 1) : (today.getMonth() + 1);
var day = today.getDate() < 10 ? '0' + today.getDate() : today.getDate();
var hour = today.getHours() < 10 ? '0' + today.getHours() : today.getHours();
var minute = today.getMinutes() < 10 ? '0' + today.getMinutes() : today.getMinutes();
var second = today.getSeconds() < 10 ? '0' + today.getSeconds() : today.getSeconds();
var currentHour = hour + ":" + minute + ":" + second;
var currentDate = day + '/' + month + '/' + year;
//var currentTime = currentDate + " - " + currentHour;
return currentDate;
}
print do ERRO