{"Id":51,"FormId":"e6f575f7-5619-459b-a359-d0b32b4d8bf6","Name":"Best Practices: iMIS Data Insert","Fields":[{"Id":0,"Form":null,"Created":"0001-01-01T00:00:00","Updated":"0001-01-01T00:00:00","LastAccessed":"0001-01-01T00:00:00","Type":"header","Access":false,"ClassName":null,"Inline":false,"toggle":false,"Description":null,"Label":"Best Practices: Pet Form","Multiple":false,"Name":null,"Other":false,"RequireValidOption":false,"Required":false,"Style":null,"ExecuteFlow":null,"HttpMethod":"post","StatusFlow":null,"PollingIntervalInSeconds":5,"LabelHoldingMessage":"Please wait...","Subtype":"h1","Maxlength":null,"Rows":null,"UrlParameter":null,"ImisRequestAuthorization":false,"IqaPathWithParameters":null,"JavaScript":null,"JavaScriptToExecuteAfterStatusFlowFinished":null,"Value":null,"Step":0.0,"ActivateAsTriggerForDependentControls":null,"Values":null},{"Id":0,"Form":null,"Created":"0001-01-01T00:00:00","Updated":"0001-01-01T00:00:00","LastAccessed":"0001-01-01T00:00:00","Type":"urlParameters","Access":false,"ClassName":null,"Inline":false,"toggle":false,"Description":null,"Label":null,"Multiple":false,"Name":"UserID","Other":false,"RequireValidOption":false,"Required":false,"Style":null,"ExecuteFlow":null,"HttpMethod":"post","StatusFlow":null,"PollingIntervalInSeconds":5,"LabelHoldingMessage":"Please wait...","Subtype":null,"Maxlength":null,"Rows":null,"UrlParameter":"ID","ImisRequestAuthorization":false,"IqaPathWithParameters":null,"JavaScript":null,"JavaScriptToExecuteAfterStatusFlowFinished":null,"Value":null,"Step":0.0,"ActivateAsTriggerForDependentControls":null,"Values":null},{"Id":0,"Form":null,"Created":"0001-01-01T00:00:00","Updated":"0001-01-01T00:00:00","LastAccessed":"0001-01-01T00:00:00","Type":"text","Access":false,"ClassName":"form-control","Inline":false,"toggle":false,"Description":null,"Label":"Pet Name","Multiple":false,"Name":"PetName","Other":false,"RequireValidOption":false,"Required":false,"Style":null,"ExecuteFlow":null,"HttpMethod":"post","StatusFlow":null,"PollingIntervalInSeconds":5,"LabelHoldingMessage":"Please wait...","Subtype":"text","Maxlength":null,"Rows":null,"UrlParameter":null,"ImisRequestAuthorization":false,"IqaPathWithParameters":null,"JavaScript":null,"JavaScriptToExecuteAfterStatusFlowFinished":null,"Value":null,"Step":0.0,"ActivateAsTriggerForDependentControls":null,"Values":null},{"Id":0,"Form":null,"Created":"0001-01-01T00:00:00","Updated":"0001-01-01T00:00:00","LastAccessed":"0001-01-01T00:00:00","Type":"text","Access":false,"ClassName":"form-control","Inline":false,"toggle":false,"Description":null,"Label":"Pet Species","Multiple":false,"Name":"PetSpecies","Other":false,"RequireValidOption":false,"Required":false,"Style":null,"ExecuteFlow":null,"HttpMethod":"post","StatusFlow":null,"PollingIntervalInSeconds":5,"LabelHoldingMessage":"Please wait...","Subtype":"text","Maxlength":null,"Rows":null,"UrlParameter":null,"ImisRequestAuthorization":false,"IqaPathWithParameters":null,"JavaScript":null,"JavaScriptToExecuteAfterStatusFlowFinished":null,"Value":null,"Step":0.0,"ActivateAsTriggerForDependentControls":null,"Values":null},{"Id":0,"Form":null,"Created":"0001-01-01T00:00:00","Updated":"0001-01-01T00:00:00","LastAccessed":"0001-01-01T00:00:00","Type":"number","Access":false,"ClassName":"form-control","Inline":false,"toggle":false,"Description":null,"Label":"Pet Age","Multiple":false,"Name":"PetAge","Other":false,"RequireValidOption":false,"Required":false,"Style":null,"ExecuteFlow":null,"HttpMethod":"post","StatusFlow":null,"PollingIntervalInSeconds":5,"LabelHoldingMessage":"Please wait...","Subtype":"number","Maxlength":null,"Rows":null,"UrlParameter":null,"ImisRequestAuthorization":false,"IqaPathWithParameters":null,"JavaScript":null,"JavaScriptToExecuteAfterStatusFlowFinished":null,"Value":null,"Step":0.0,"ActivateAsTriggerForDependentControls":null,"Values":null},{"Id":0,"Form":null,"Created":"0001-01-01T00:00:00","Updated":"0001-01-01T00:00:00","LastAccessed":"0001-01-01T00:00:00","Type":"paragraph","Access":false,"ClassName":"Message","Inline":false,"toggle":false,"Description":null,"Label":"&amp;nbsp;","Multiple":false,"Name":null,"Other":false,"RequireValidOption":false,"Required":false,"Style":null,"ExecuteFlow":null,"HttpMethod":"post","StatusFlow":null,"PollingIntervalInSeconds":5,"LabelHoldingMessage":"Please wait...","Subtype":"p","Maxlength":null,"Rows":null,"UrlParameter":null,"ImisRequestAuthorization":false,"IqaPathWithParameters":null,"JavaScript":null,"JavaScriptToExecuteAfterStatusFlowFinished":null,"Value":null,"Step":0.0,"ActivateAsTriggerForDependentControls":null,"Values":null},{"Id":0,"Form":null,"Created":"0001-01-01T00:00:00","Updated":"0001-01-01T00:00:00","LastAccessed":"0001-01-01T00:00:00","Type":"button","Access":false,"ClassName":"btn-primary btn","Inline":false,"toggle":false,"Description":null,"Label":"Submit Form","Multiple":false,"Name":"SubmitForm","Other":false,"RequireValidOption":false,"Required":false,"Style":"primary","ExecuteFlow":"BestPractices/InsertData","HttpMethod":"post","StatusFlow":null,"PollingIntervalInSeconds":10,"LabelHoldingMessage":"Please wait...","UseCloudToolzUrlforExecuteFlow":true,"UseCloudToolzUrlforStatusFlow":false,"Subtype":"button","Maxlength":null,"Rows":null,"UrlParameter":null,"ImisRequestAuthorization":true,"IqaPathWithParameters":null,"ClearForm":false,"JavaScript":"var errorDiv = jQuery(\".AsiError\");\nif (errorDiv.length === 0) {\n  // Clear input fields\n  jQuery(\"#PetName\").val(\"\");\n  jQuery(\"#PetSpecies\").val(\"\");\n  jQuery(\"#PetAge\").val(\"\");\n\n  // Clear message html after 1.5 seconds\n  setTimeout(() => {\n    jQuery(\".Message\").html(\"\");\n  }, 1500);\n}","JavaScriptToExecuteAfterStatusFlowFinished":null,"Value":null,"Step":0.0,"ActivateAsTriggerForDependentControls":null,"Values":null},{"Id":0,"Form":null,"Created":"0001-01-01T00:00:00","Updated":"0001-01-01T00:00:00","LastAccessed":"0001-01-01T00:00:00","Type":"hidden","Access":false,"ClassName":null,"Inline":false,"toggle":false,"Description":null,"Label":null,"Multiple":false,"Name":"CurrentDate","Other":false,"RequireValidOption":false,"Required":false,"Style":null,"ExecuteFlow":null,"HttpMethod":"post","StatusFlow":null,"PollingIntervalInSeconds":5,"LabelHoldingMessage":"Please wait...","Subtype":null,"Maxlength":null,"Rows":null,"UrlParameter":null,"ImisRequestAuthorization":false,"IqaPathWithParameters":null,"JavaScript":null,"JavaScriptToExecuteAfterStatusFlowFinished":null,"Value":null,"Step":0.0,"ActivateAsTriggerForDependentControls":null,"Values":null}],"JavaScriptToInject":"function padTo2Digits(num) \n{\n       return num.toString().padStart(2, '0'); \n} \nfunction formatDate(date = new Date()) \n{\n       return [     date.getFullYear(),     padTo2Digits(date.getMonth() + 1),     padTo2Digits(date.getDate())].join('-') + 'T' + padTo2Digits(date.getHours())+':'+  padTo2Digits(date.getMinutes())+':00'  ; \n}\njQuery('#CurrentDate').val(formatDate());\njQuery(\".Message\").html(\"\");\n\n// Clear .Message HTML and display it when the \"Submit Form\" button is clicked\njQuery(\"#SubmitForm\").click(() => {\n       jQuery(\".Message\").show();\n       jQuery(\".Message\").html(\"\");\n});\n ","Version":0,"AppOwnerId":null,"ParentId":null}