Getting value of text field?

Hello,

I’m not sure if I am skipping something in the Servoy Documentation, but I cannot seem to find a way to get the current value of a text field.
I have looked at all the methods and properties for JSField, but none seem to specify returning the current value.

I am creating a login form, so of course I need a way to pull in the typed username and password so I can run validation on them via the database.
In standard JS it was just .value, what am I missing?

Thanks,
Chris

Fields in Servoy needs to be attached to a data provider.
It can be a database column, a global (or scoped variable in 6.1), or a form variable.

Simply create a var username and var password in your login form’s js.
Then attach these variables to the fields as dataProvider, then you can simply use the value of the variable.

That’s how it is done in Servoy.

Cool, thanks for the quick reply!
I’ll go ahead and start mucking with dataproviders then!