Getting the textbox value

Getting the textbox value

  

Getitng the textbox value through TextBox's name property, I am using the below code but it is always giving me "undefined" value. In outsystems I don't think you can set the ID property as I can't see it in the properties section of the text box


SyntaxEditor Code Snippet

"alert(document.getElementsByName('Contact_Name').value);"
Solution

Hi Sandeep,

That is correct. The ID's in outsystems are generated automatically, based on the name of the element and the names of it's parents. 

You can use something like "document.getElementById('"+Contact_Name.Id+"').value"

Kind regards,

Remco

Solution

Brilliant, worked like a charm :-), cheers mate.