user723417
user723417

Reputation: 13

How to get input text value

I want to get a value in Java ADF using JavaScript. I tried many examples but got undefined or null value.

Do anyone know how to get the inputtext value in ADF using JavaScript?

And what are the configure?

Upvotes: 0

Views: 4648

Answers (2)

v0v87
v0v87

Reputation: 31

To find component you can use method. To get value from inputText use this.

var input= AdfPage.PAGE.findComponent("it1");
var value = input.getValue();    

Upvotes: 1

ChanceLai
ChanceLai

Reputation: 78

  • Read value from inputText

    document.getElementById('pt1:r1:0:subform0base:userName::content').value

notice:
How to get the id like this "pt1:r1:0:subform0base:userName::content" ?
just press "F12" and select you inputText in the browser usually,then you will see the id

Upvotes: 0

Related Questions