Avatar

Level 2
<!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Some test form</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> <!-- jQuery library --> &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js">&lt;/script&gt; <!-- Popper JS --> &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js">&lt;/script&gt; <!-- Latest compiled JavaScript --> &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js">&lt;/script&gt; <style> .top-declaration { font-size: 1.5rem; margin-top: 20px; } .submit { background-color: #5288de; color: white; font-size: 1.2rem; width: 100%; padding-top: 10px; padding-bottom: 10px; } .submit-disabled { background-color: lightgray; color: darkgrey; font-size: 1.2rem; width: 100%; padding-top: 10px; padding-bottom: 10px; } .matter { font-size: 1.2rem; text-align: justify; } .point { font-weight: 400; text-align: justify; margin-bottom: 30px; } .point:hover { color: coral; } </style> </head> <body style="" class=""> <div class="container"> <div class="row"> <div class="col-sm-12 top-declaration">Please Enter your purchase ID</div> </div> <div class="container"><form class="form m-3"> <div class="form-group"><input class="form-control" id="purchase_number" type="text" placeholder="PurchaseId*" /></div> <div><input id="btnSubmit" type="button" value="Submit" onclick="validatePurchaseID()" data-nl-bindto="action" data-nl-action="next" data-nl-transition="" /></div> </form></div> </div> </body> &lt;script&gt; function validatePurchaseID() { var purchase_number = ("#purchase_number").val(); document.controller.setValue('/ctx/vars/my_purchase_number', purchase_number); } &lt;/script&gt; </html>