[urgent] SPOTFIRE disable a button

Hello,

please i need your help i need to disable a button if an input field contains "*"

i've used this code :

var CFVal = document.getElementById('CFVALUE').value; if(CFVal && CFVal.indexOf('*')!= -1) {document.getElementById('85ef0dd596f646d6b0845c374b9f7e5b').disabled = true;} else {document.getElementById('85ef0dd596f646d6b0845c374b9f7e5b').disabled = false;}

but without effect, the button is always  active and not disabled

(1) Answer

Login