APEX-AT-WORK no image

Get radio button value with javascript

Von Tobias Arnhold 5.13.2010
Most of you know how to get an HTML session value inside APEX:
To get the current value from a radio button use this APEX function:

// 1. Item: HTML Form Element Attributes:

// 2. Page: HTML Header
<script type="text/javascript">
function fnc_setRadioItem(v_radioItem)
// Create AJAX request object with JavaScript class "htmldb_Get"
// 1. Parameter: Appointed for 'Partial Page Refresh', not needed
// 2. Parameter: Determined the actual application ID
// 3. Parameter: Defines the application process, I use a dummy value
// 4. Parameter: For 'Partial Page Refresh': not needed
var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=v_dummy',0);
gReturn = get.get();
//html_GetElement(v_radioItem).value = v_radioItem;
get = null;

You can find even more functions inside the APEX documentation: API Reference - 9 JavaScript APIs

Tip für die deutsche Community: APEX AJAX und JQuery HowTo Beispiel

Post Tags:

2 Comments " Get radio button value with javascript "

Patrick Wolf 16 May, 2010 19:48

Hi Tobias,

it's better to use $v instead. It will work with all item types of APEX.


Sangeetha 29 June, 2013 16:00

Hi Tobias,

How can I get the value selected in the radio group in a database column. Please help me.

Thank you.