I have created one custom form with two Buttons. 1 is Save and 2 is Submit.
When admin submit the form I have to check in controller which button is clicked.
<button id="save_btn" name="save" title="Save" type="submit" class="action-default scalable action-save action-secondary" value="save" data-ui-id="widget-button-0">
<span>Save</span>
</button>
<button id="submit_btn" name="submit" title="Submit" type="submit" class="action-default scalable action-save action-secondary" data-ui-id="widget-button-1">
<span>Submit</span>
</button>
In controller I have used
$post = $this->getRequest()->getPostValue();
$post = $this->getRequest()->getPostParams();
I'm getting all other data but not getting button data in the controller.