+ Start a Discussion
Nagesh B 13Nagesh B 13 

Inline if else condition or ternory operator used on oncomplete in VF?

Hi All,

is any one used inline if else condition or Ternory operator usage on oncomplete in VF. based on that i wanna call different java script functions based on variable. please let me know the syntax if any body knows and if it is possible.

Thanks,
Nagesh B
Nagendra Prasad ChNagendra Prasad Ch
Hi Nagesh,
Try this,
 
<apex:actionSupport  oncomplete="IF(condition,IfFunction();,ElseFunction();)"  status="SearchingStatus" />



one more way  is,
call a JS function from oncomplete method by passing required parameters, in that JS function use If , Else conditions to perform logic or call other JS functions from if, else.

Let me know if it helps.
Nagesh B 13Nagesh B 13
Thanks Nagendra. :)