Announcement

Collapse
No announcement yet.

Force an update of a form before navigating away

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Force an update of a form before navigating away

    I am using a form in single record mode and encourage the user to browse through several records and update as needed.

    As far as I can see the user needs to press 'Save' each time to save the record and if they navigate away to another record without doing this changes are lost.

    - is there a way to ensure it saves before navigating?
    - if not do I need a custom button to do this. If so how do I get script case to save a record?
    - if that's not possible, can I generate an alert?

    I'm worried users will spend time editing data and not realise the data isn't being saved.

    Thanks for suggestions...
    Neil

  • #2
    Originally posted by iosson View Post
    I am using a form in single record mode and encourage the user to browse through several records and update as needed.

    As far as I can see the user needs to press 'Save' each time to save the record and if they navigate away to another record without doing this changes are lost.

    - is there a way to ensure it saves before navigating?
    - if not do I need a custom button to do this. If so how do I get script case to save a record?
    - if that's not possible, can I generate an alert?
    Don't tried but try with this JS

    Code:
    window.onbeforeunload = function () {
        nm_atualiza ('alterar');
    };
    Share your results
    /Giuseppe

    Professional Scriptcase Services
    Some Customers opinions

    Comment

    Working...
    X