Well, I have taken one extra field and set the value of the field as
"1", Only when a user clicks on the button. Now, on the intialize event
I wrote script as:if(field.rawValue == "1"){Button.presence =
"hidden"}When happens next: For the first time it works absolutely fine,
when I close the form and re-open that again, the Button becomes visible
and the value of the field becomes "null".