Skip to content

Commit

Permalink
Feature: New function enabled to lock the field
Browse files Browse the repository at this point in the history
  • Loading branch information
Marlinsk committed Jun 24, 2022
1 parent 41859c2 commit dc96c56
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@ function enableFields(form) {
var ATIVIDADE_ATUAL = getValue("WKNumState");

if (ATIVIDADE_ATUAL == 5) {
bloquearCampoInicial(form);
bloquearCamposdePreenchimentopeloUsuario(form);
}

if (ATIVIDADE_ATUAL == 9) {
bloquearCampoAprovador(form);
}

if (ATIVIDADE_ATUAL == 28) {
bloquearCampoRespostaIntegracao();
}
}
function bloquearCampoAprovador(form) {
form.setEnabled("observadorAprovador", false);
}
function bloquearCampoInicial(form) {
function bloquearCampoRespostaIntegracao(form) {
form.setEnabled("RespostaIntegracao", false);
}
function bloquearCamposdePreenchimentopeloUsuario(form) {
form.setEnabled("nomecompleto", false);
form.setEnabled("CPF", false);
form.setEnabled("email", false);
Expand Down

0 comments on commit dc96c56

Please sign in to comment.