Inject Js Script - VB Crossplatform

Hello,
Below image Im facing the type error can some one help me to sort out this issue

@raja_sarathkumar,

In UiPath, you need to properly escape quotes within the string to ensure it’s interpreted correctly.
Try using this JS.

"document.getElementById(\"g-recaptcha-response\").style.display = \"block\";"

Thanks,
Ashok :slight_smile:

Hi!

Take a look at these threads:
How to pass input parameter in Inject java script - Help - UiPath Community Forum

JavaScript and UIPath inject, How to use JQuery or Node.js - Help - UiPath Community Forum

How to work with Inject JS - Help - UiPath Community Forum

And this article:
Activities - Inject JS Script (uipath.com)

It seems like you need use this format for your Script Code:

function (element, input) {
return “result”;
}

@raja_sarathkumar

I believe this is how you need to use

"document.getElementById(""g-recaptcha-response"").style.display = ""block"";"

cheers