Search the Community
Showing results for tags 'data validation'.
-
I have been pounding my head against a wall on this one. I need to do data validation for two fields in a tabular report data page in two different scenarios. I have been successfully using the following code to validate one field: <script> var nameOfField = "InlineAddWhole_Value_Perc_Split_to_Agent"; document.addEventListener('DOMSubtreeModified', function(){ if(document.getElementsByName(nameOfField)[0]) { document.getElementsByName(nameOfField)[0].addEventListener('change', function(){ var cash= document.getElementsByName(nameOfField)[
- 1 reply
-
- inline edit
- data validation
-
(and 1 more)
Tagged with:
-
Hello - I need help in improving the JS code below. I would like to add data validation upon updating a record via In line Edit in a Tabular form. Any feedback is much appreciated. <script> document.getElementById("Mod0InlineEdit").onclick = function() { window.alert("check"); if(document.getElementsByName("Mod0InlineEdit")[0].value > 100 { window.alert("save!"); } else if (document.getElementsByName("Mod0InlineEdit")[0].value > 1000 { window.alert("do not save!"); return false; } else { window.
-
I hope I'm not asking a really foolish question but I have search around without much success. How do check that data entered in a form is in a specific range. Lets say we have a currency field "Rent". How do we check in a form that the amount entered is greater than 0 and less then 10,000 say? Thanks