Set submit trigger for certain Javascript actions.