Zurück zum Blog

Enable save button on form change

von Tobias Arnhold

Today I had the requirement that the save button should stay disabled until a form item changed.

Form with a disabled save button

After digging around I found a quite easy solution which worked well until now.

Save Button
Static ID: saveBtn
Custom Attributes: disabled

Dynamic Action
Event: Page Load
Execute JavaScript Code:

$('#wwvFlowForm').on('input change', function() {
    $('#saveBtn').attr('disabled', false);
});

Simple but effective.

Zuerst erschienen auf apex-at-work.blogspot.com