Adding two HTTP Submit Buttons to a single XDP form | Community
Skip to main content
nileshpb
Level 2
November 8, 2023
Question

Adding two HTTP Submit Buttons to a single XDP form

  • November 8, 2023
  • 0 replies
  • 541 views

Hi All,

 

We have a use case where we need to add 'Print' and 'Submit' buttons to an HTML5 form. We are calling a servlet and adding that servlet from the XDP file properties. This servlet will call two different methods based on the click event. For example, if a user clicks on 'Print,' it will call the same servlet with Print method and a separate method for submission.

First of all, could you please let me know if we can add two HTTP Submit Buttons to a single XDP form? If yes, then how can we call the same servlet? Can we call it through an AJAX call?

Alternatively, you can also guide me on how to achieve this use case with better approach.

Best regards

Nilesh

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.