Event Targets
An event target can be created for classification and populate menu events by using the target function. The event target is a way of telling the event what element(s) to act upon.
If the event target is a section, text, or question element it takes a string argument which is the label of that element.
If the event target is a button element, use one of the :previous_button or :submit_button flags to determine the target.
Event Target Flags
The :page, :section, :text, :question flags are used to configure the element type of the target. One of these is required for all targets unless the target is for a populate menu event (populate menu events always target question elements) or the target is a button element.
The :insert or :remove flags are used to specify which action should be taken on the target of a insert/remove classification event.
The :show or :hide flags are used to specify which action should be taken on the target of a hide/show classification event.
The :readonly or :readwrite flags are used to specify which action should be taken on the target of a read only/read write classification event.
The :required or :optional flags are used to specify which action should be taken on the target of a required/optional classification event.
Creating Event Targets
target "Requester Section", :question, :readonly
The target above is for a read only/read write classification event that will make a question element read only.
target "Requester"
The target above is for a populate menu event. No flags are necessary because populate menu events always target questions and perform the same action.
target :submit_button, :hide target :previous_button, :hide
The targets above are for a hide/show event that will hide both the submit and previous buttons.