1
0
-1
In Composer how do I execute a script when a radio button is clicked?
  1. Unknown User (support)
    SP1 for Composer 4.0 will be released at the end of May 2014
CommentAdd your comment...

1 answer

  1.  
    1
    0
    -1
    1. Unknown User (support)
      Composer 4.0 SP1
      On a Radio button, like Buttons and Checkboxes, under 'Rules' there is a 'Click' action that we can add scripts to such that it gets executed when the radio is clicked. This script is run after the value is updated and anything that has a dependency on the radio button and button group has been executed.

      Here is an example of this:

      if({MyButton} == "Yes"){
      sfcInternal.av_internal_delayedFocus({MySection},true);
      }

      Note however because of the way click handlers are applied (A single handler on the container relying on event propagation), the click rule is processed after the change handlers for the radio button are run. (This may or may not be the expected behavior). In your case where you are just transferring focus it shouldn't matter.
      Please note this does not work in Composer 4.0 (SP1 is required)
    CommentAdd your comment...