How can we stop this dialogue box when we click on save option?

Certified Associate Developer

Hi Everyone, is it possible to stop this dialogue box, if yes , How can we stop this dialogue box when we click on save option?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    What is your "save option" and what is it doing?

  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

     a!buttonLayout(
                  primaryButtons: {
                    a!buttonWidget(
                      label: cons!ISR_TEXT_BUTTON_SAVE,
                      value: cons!ISR_TEXT_BUTTON_SAVE,
                      saveInto: {
                        a!save(local!visibility, true()),
                        a!startProcess(
                          processModel: cons!ISR_WRITE_TO_DB_FINAL_APPROVAL_PM,
                          processParameters: {
                            gsr_j_meeting_amd: local!gsrAmdMD,
                            gsr_j_meeting_study: local!gsrMD,
                            isr_j_meeting_study: local!isrMD,
                            isr_j_meeting_amendment: local!isrAmdMD,
                           
                          }
                        ),
                        a!save(ri!buttonAction, save!value),
                        a!save(ri!isrMdApproval, local!isrMD, ),
                        a!save(ri!gsrMdApproval, local!gsrMD, ),
                        a!save(ri!isrMdAmdApproval, local!isrAmdMD, ),
                        a!save(ri!gsrMdAmdApproval, local!gsrAmdMD, ),
                       
                      },
                      submit: false(),
                      style: "NORMAL",
                      validate: false(),
                     
                    ),
                    a!buttonWidget(
                      label: "Save AND END TASK",
                      value: cons!ISR_TEXT_BUTTON_SAVE_END_TASK,
                      saveInto: {
                        a!save(local!visibility, false()),
                        a!save(ri!buttonAction, save!value),
                        a!save(ri!isrMdApproval, local!isrMD, ),
                        a!save(ri!gsrMdApproval, local!gsrMD, ),
                        a!save(ri!isrMdAmdApproval, local!isrAmdMD, ),
                        a!save(ri!gsrMdAmdApproval, local!gsrAmdMD, ),
                       
                      },
                      submit: true(),
                      style: "PRIMARY",
                      validate: true,
                      validationGroup: cons!ISR_TEXT_BUTTON_SAVE_END_TASK,
                      confirmHeader: "Submit?",
                      confirmMessage: "Are you sure you want to Submit, decision taken cannot be changed later."
                    )
                  }
                ),
    

    I am just saving the comments for later without submitting. Actually, we have two buttons one is "save" and other is "save and end task", save and end task denotes submission of the task. 

    Please find the code configuration for that buttons

  • 0
    Certified Lead Developer
    in reply to sireesha

    I am confused. A non-submit button does not trigger that browser message.

    I am really missing the context here. Can you feed my remote healing powers with more details?

  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

    yeah sure .Could you please let me know  when this browser message will trigger in appian

  • 0
    Certified Lead Developer
    in reply to sireesha

    When there is modified data in an input field and you try to navigate away.

  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

    cant we control that dialogue box?

  • 0
    Certified Lead Developer
    in reply to Stefan Helzle
    I am really missing the context here.

    1. The users enter data.

    2. The user clicks on this bespoke non-submitting "Save" button which performs its save via StartProcess call.

    3. The user tries to navigate away, having "saved" already, and the Appian pop-up about losing unsaved data appears (but is now unwanted).

    This seems like a reasonable question.  I'm not sure the use case is quite common enough to require something custom from Appian to handle.  I would merely suggest to the OP that they consider implementing a "non-submitting save" in the traditional manner, meaning it's actually submitting (but perhaps not validating or at least validating less), chaining immediately back to the form after information is persisted into the process instance and/or database.

Reply
  • 0
    Certified Lead Developer
    in reply to Stefan Helzle
    I am really missing the context here.

    1. The users enter data.

    2. The user clicks on this bespoke non-submitting "Save" button which performs its save via StartProcess call.

    3. The user tries to navigate away, having "saved" already, and the Appian pop-up about losing unsaved data appears (but is now unwanted).

    This seems like a reasonable question.  I'm not sure the use case is quite common enough to require something custom from Appian to handle.  I would merely suggest to the OP that they consider implementing a "non-submitting save" in the traditional manner, meaning it's actually submitting (but perhaps not validating or at least validating less), chaining immediately back to the form after information is persisted into the process instance and/or database.

Children
No Data