Enable save button on form change

weniger als 1 Minuten zum lesen

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

enable-save-button-on-form-change-01

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:

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

Simple but effective.