This discussion is archived
2 Replies Latest reply: Jun 16, 2013 1:10 PM by Patrick Wolf RSS

Setting value of a page item using onclick

Vidya13 Newbie
Currently Being Moderated

Hi,

 

 

I am new to APEX and have been checking how to set the value of an item on button click.

I saw a lot of threads related to that but couldnot find a solution.

 

I want to set the value of hidden item P22_ADD_VAL to 2.

In the "button attributes" of the button,

onclick="$x("P22_ADD_VAL").value = "2";"

 

 

also tried

onclick="$x_Value('P22_ADD_VAL',"2");"

 

 

onclick=" $s("P22_ADD_VAL","2");"

 

 

none of them work.

Can you pls tell me wht i am misssing or what is the right way to do it?

 

 

Thanks,

VS.