Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

How can I add a screen with a notice to indicate that the form was submitted successfully??

After clicking the submit button, the data was submitted but the screen does not change, this can be a bit confusing for the user (to know if the form was submitted).

After click submit button,

1. How can I add a screen with a notice to indicate that the form was submitted successfully??

2. How can I add a button or link to send a new form or restar the form??

In the image bellow i click the submit button, the data was sent, but the screen doesnt change or clear the fields to sent a new form

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    on submit button call webapi(exposing a process model) and then onsucess increase the local!step+1 onerror don`t move to next step. Your step+1 contain the success form

    choose(
    local!choosenStep,
    rule!NHP_SC_Step1(
    formContent: local!formContent,
    choosenStep: local!choosenStep,
    sessionId: local!sessionId,
    questionSummary: local!questionSummary,
    calculatedRiskProfile: local!calculatedRiskProfile
    ),
    rule!NHP_SC_Step2(
    formContent: local!formContent,
    choosenStep: local!choosenStep,
    calculatedRiskProfile: local!calculatedRiskProfile
    ),

    )

    button:  a!buttonWidget(
    label: rule!NHP_getLookUpValue(
    keyId: "button.continue",
    lookup: ri!formContent
    ),
    saveInto: {
    rule!NHP_PUT_INTERNAL_API(
    questionnaireId: local!selectedQuestionaireId,
    sessionId: local!selectedSessionId,
    questionId: local!questionId,
    values: local!value,
    onSuccess: {


    if(
    local!resultStatus = "Success",
    {
    a!save(ri!choosenStep, ri!choosenStep + 1)


    },
    {}
    )

    },
    onError: { a!save(local!error, fv!error) }
    ),

    },

    size: "STANDARD",
    width: "FILL",
    style: "PRIMARY",
    loadingIndicator: true,
    validate: true()
    )

Reply
  • 0
    Certified Senior Developer

    on submit button call webapi(exposing a process model) and then onsucess increase the local!step+1 onerror don`t move to next step. Your step+1 contain the success form

    choose(
    local!choosenStep,
    rule!NHP_SC_Step1(
    formContent: local!formContent,
    choosenStep: local!choosenStep,
    sessionId: local!sessionId,
    questionSummary: local!questionSummary,
    calculatedRiskProfile: local!calculatedRiskProfile
    ),
    rule!NHP_SC_Step2(
    formContent: local!formContent,
    choosenStep: local!choosenStep,
    calculatedRiskProfile: local!calculatedRiskProfile
    ),

    )

    button:  a!buttonWidget(
    label: rule!NHP_getLookUpValue(
    keyId: "button.continue",
    lookup: ri!formContent
    ),
    saveInto: {
    rule!NHP_PUT_INTERNAL_API(
    questionnaireId: local!selectedQuestionaireId,
    sessionId: local!selectedSessionId,
    questionId: local!questionId,
    values: local!value,
    onSuccess: {


    if(
    local!resultStatus = "Success",
    {
    a!save(ri!choosenStep, ri!choosenStep + 1)


    },
    {}
    )

    },
    onError: { a!save(local!error, fv!error) }
    ),

    },

    size: "STANDARD",
    width: "FILL",
    style: "PRIMARY",
    loadingIndicator: true,
    validate: true()
    )

Children
No Data