Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 782

Internet • Browser widget: set value of password input [Solved]

$
0
0
Hi all

I have a password type input on a form in a browser widget.

I get an error when I try to set the input's value like so:

CODE:

do "document.getElementById('login_passwd').value = 'myPassword'" in widget "Browser1"
The error says,
LCB ErrorValue is not of correct type for assignment to variable - expected type <type: livecode.lang.string> for assigning to variable tResult in com.livecode.widget.browser.browserEvaluateJavaScript
ObjectBrowser1
LCB Filebrowser.lcb
LCB Line864
What am I doing wrong?

Statistics: Posted by Cairoo — Tue Jun 25, 2024 9:15 am



Viewing all articles
Browse latest Browse all 782

Trending Articles