function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MTBRiderMTBRider 

More inlineEditSupport weirdness

Here is another one for inlineEditSupport....I am noticing that if you are using the showOnEdit and hideOnEdit attributes to display and hide buttons, that if you have code somewhere that does .addErroor on a field, those attributes seem to be ignored.  

 

I am doing this:

 

<apex:inlineEditSupport showOnEdit="saveBtn, cancelBtn" hideOnEdit="editBtn, deleteBtn" event="ondblClick" changedStyleClass="inline_edit_color" resetFunction="resetInlineEdit"/>

which works fine until I do a .addError, then the save button and cancel button disappear and the edit and delete button appear which is unfortunate because the error message say "...click the Cancel button to continue :).  Anyone know how to fix this?  Thanks.