I want to have two actions executed on a field’s down event.
You can actually chain actions. The following code should help you.
Obj after_action_dict = widget_annot.GetSDFObj().PutDict("AA"); after_action_dict.Put("D", your_action.GetSDFObj()); your_action.GetSDFObj().Put("Next", your_next_action.GetSDFObj()); // if you want to chain additional actions, you can also put an Array object under the "Next" key, and push back actions in the order you want. // That is "Next" can either point to a single Action dictionary, or an Array containing multiple Action dictionaries (which in turn can each nest further)
This post might also be helpful.