Oracle Application Express (MOSC)

MOSC Banner

Get value of pl/sql-generated form element?

edited Sep 5, 2013 11:16AM in Oracle Application Express (MOSC) 6 commentsAnswered
 All,
I have an APEX page with a PL/SQL dynamic region.  This regions calls a PL/SQL procedure that generates html.  In this html, a form is opened with a text box (id="txtUserEnteredText") awaiting user input.  I need to know how to set the value of an APEX page item on a button click with the user-entered text. What I have tried is the following dynamic action for the button.

-- Dynamic Action
Event: On Click
Section Type: Button
Button: P20_GET_TEXT

-- Action
Action: Set Value
Set Type: JavaScript Expression
JavaScript Expression: $x(document.getElementById('txtUserEnteredText').value);

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center