SOTI Surf - is it possible to auto-fill an input field via script?

CK
Chad Kohls
EMP Technical Group

Hey everyone,

I'm trying to write a script in SOTI Surf where it will automatically fill/set the value of an input field on a page.  Testing in some other environments (Velocity, W3Schools) the script below works fine, but when I try and use it in Surf, it doesn't seem to like it.  It throws an error about the HTMLElement not having a property 'value'.  Has anyone successfully done something like this in SOTI Surf?  Just wondering if I'm missing something or if theres a limitation to the scripting in Surf.  FYI, I'm just testing on the Google home page, so that element id is the search bar.  Any help or guidance is greatly appreciated!

 
document.getElementById("APjFqb").value = "Test Text";
 
a month ago
Android Scripting
ANSWERS
R
RRMOD@SOTI
a month ago

Hi @Chad Kohls,

Thank you for your post on Soti Pulse.

I would like to clarify that SOTI Surf natively supports the auto-fill option without the need for additional scripts. I have attached a screenshot to this email demonstrating where this feature can be managed within the console.

To ensure we provide the best solution for your requirements, could you please share the specific use case for the script you mentioned? 

We look forward to your response so we can assist you further.

kind regards,

Technical Support | SOTI Inc. | Call Us | SOTI.net | Discussion Forum | Log a Case Online

 

CK
Chad Kohls
28 days ago

Thanks for the response!  That's not exactly what I'm looking for though.  I want the field to get auto-filled without needing the user to click on it.  Basically, as soon as this particular page loads, I want the field to already be filled.  Does that make sense?

R
RRMOD@SOTI
7 days ago

Hi @Chad Kohls,

At present, this feature is not available. However, we truly appreciate your suggestion and understand how this functionality could be beneficial.

We kindly request that you log a support case so our team can investigate your requirement in greater detail.

Once the case is reviewed, our support agent will be able to formally raise a feature request for consideration in a future enhancement.

We request you to please raise a support case at log a case so that our agent can work on it.

Warm regards,

Technical Support | SOTI Inc. | Call Us | SOTI.net | Discussion Forum | Log a Case Online