Hi @josegdiazv ,
You can validate the multistep form’s step using Custom JavaScript,
Please follow the steps given below,
- Navigate to the Multistep form,
- Look for the step you wish to validate, open the step,
- Navigate to Form Options Tab, scroll down for the Custom JavaScript,

Add the Below JavaScript Code,
In the below code,
- I have created a Duplicate button,
- I have also hidden the Default Next button,
- On a specific condition, it clicks the default Next Button,
$(document).ready(() => {
//Hiding the main button from the form
$("#NextButton").css("display", "none");
//Initializing the variables
let recordCount,duplicateNextBtn;
//Creating a duplicate button
duplicateNextBtn = "<button type='button' class='btn btn-primary button next submit-btn' id='btnDuplicateNext'>Next</button>"
$(duplicateNextBtn).insertAfter("#NextButton")
$("#btnDuplicateNext").click(() => {
//Checking the Records count
recordCount = $(".entity-grid.subgrid").find("tbody").find("tr").length;
if (recordCount == 0) {
alert("Please Add atleast one record in the grid")
} else { $("#NextButton").click() }
})
})
Save and SYNC the Website,
Thanks!
Inogic Professional Services Division
Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!
Drop an email at crm@inogic.com
Services: http://www.inogic.com/services/
Power Platform/Dynamics 365 CRM Tips and Tricks: http://www.inogic.com/blog/