I have a form that is in display mode and has some workflow action buttons (edit and comment, say) at the bottom.
When I click on one of the action buttons the "edit_fields" for that action are turned into edit mode. The transformation into edit mode takes place in an "if" clause in my form script that checks for the existence of an action. On the next page an OK (and Cancel) button appears ...
Now, when I click the OK button it, too, is interpreted as an action. But not the "ok" action as you might expect. Rather, the old workflow action (from the previous page) is brought along. The transformation of elements into edit mode will be carried out once again (in vain) AFAICS.
This becomes a problem if spell-checking is enabled and I have typed an error:
The spell-checker needs the relevant element to be in display mode in order to show the select boxes with suggested replacement words, etc, directly in the page. The spell-checker performs this transformation in case of an error but too early, it appears. Or rather, the change into display mode appears to get overwritten in the mentioned check in the form script ...
My basic questions are ... Is it necessery that OK is treated as an "action"? And, if so, is there a suitable check I might perform in order to tell the two cases apart - the case when I click an action button and the case when I click the OK button?
/Ola