Harpreet Posted June 25 Report Share Posted June 25 Hi, I have a data pae with 3 fields and 2 calculated virtual fields. When i have values in my 3 fields present it should submit the datapage and virtual fields are actually checking the values in two of the fields are same or not. I have javascript that it restrict the suvbmission when values are not matching and is working fine. Now I just need a script that it automatically hit submit when vakues in all 3 fields are present. Dtapage: In one datapage I am passing parameter for ROUTE and STORE and in main submission datapage I am receiving that parameter in vrtual fields. Attaching link for 2nd datapage: https://c5bkr868.caspio.com/dp/a9f8600012e8da52d3aa460d9274 Quote Link to comment Share on other sites More sharing options...
Kurumi Posted June 25 Report Share Posted June 25 Hi @Harpreet - you can create a condition using a formula or Calculated Value to check if all 3 fields are present and if yes, you can use the code below for clicking the submit button. document.querySelector("input[id*='Submit']").click(); Quote Link to comment Share on other sites More sharing options...
CoopperBackpack Posted June 26 Report Share Posted June 26 Hello @Harpreet, So, the 'ROUTE1' and 'STORE1' fields are populated automatically by receiving parameters. And the 'Tote id' field is populated manually by the user. Is it correct? Can the user change the 'ROUTE1' and 'STORE1' fields? Quote Link to comment Share on other sites More sharing options...
Harpreet Posted July 2 Author Report Share Posted July 2 @CoopperBackpack and @Kurumi thanks for your input, I was able to create a script using kurumi approach, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.