I am getting an error while executing this script in Inject JS Script activity:
Inject js script: TypeError: _clientFunc is not a function
“document.getElementById(‘ctl00_ContentPlaceHolder1_txtHblno’).hasAttribute(‘disabled’);”
Please help me to resolve this error.
Yoichi
(Yoichi)
2
Hi,
Script property of Inject JS Script activity should contain a single anonymous function.
For example, you need to write as the following.
"function(e,v){ return document.getElementById('ctl00_ContentPlaceHolder1_txtHblno')hasAttribute(‘disabled’); }"
Please see also the following document.
Regards,
2 Likes
wahyumrizqi
(Wahyu Muhamad Rizqi)
3
Hi @Yoichi, Thank you for the answer, it works!!!
@Yoichi Thanks! You saved my day.
1 Like