Constraints not working on an integer field form
Hello, I created a new "feedback" ItemType for my users to write remarks about Aras. I want them to rank the priority of the feedback with an integer from 1 to 5. For this, I created a _priority property in the itemtype which is of type "Integer". I set the range Min to 1 and Max to 5, and checked the "inclusive" box. I also put a value of 1. Then I created a form and added the _priority as a text field (I first tried with a combobox but it didn't provide any selectable values, I would be happy if you can help me about that too). The form works well, the default value of 1 is here, but the user is able to enter any kind of integer (200, or even -8) and can still submit the form. I also tried to add a pattern ([1-5], and even /^[1-5]$/ ) but that didn't change anything, the validation isn't working. Is there something wrong in my databinding? Does anyone know why? Thank you.Solved4.6KViews0likes5CommentsECO Validation
Good day all. I am trying to set up a validation (C#) for a field to make sure it is completed before moving to the next step in the Workflow Process. I have seen some information for validating a checkbox in C# and some form of validation with VB (I don't know VB). I can't seem to get this to work. The coding I have tried either stop everything or don't stop anything. I added the method to the Workflow Map Path as a Pre Method. I would appreciate any help with identifying what I have missed. Thank you. Change Request - sm_DEMO_NDR (it is a testing ground for me) Property - sm_change_end_state Innovator inn = this.getInnovator(); Item controlledItem = this.apply("s_Get Controlled Item"); string is_completed = controlledItem.getProperty("sm_change_end_state"); if (is_completed =="") return inn.newError("Must be complete!"); return this; Innovator inn = this.getInnovator(); // Set up the query Item. Item qryItem = this.newItem("sm_DEMO_NDR","get"); qryItem.setAttribute("select","sm_change_end_state"); //qryItem.setID(endState); if (qryItem = "") return inn.newError("Please select appropriate End State."); return this; Innovator inn = this.getInnovator(); Item endState = this.newItem("sm_DEMO_NDR","get"); string state = endState.getProperty("select","sm_change_end_state"); if (this.endState == "") {return inn.newError("Please select appropriate End State.");};Solved3.5KViews0likes2CommentsValidating Input/Partially Restrict Editing of Fields
Hi all, I have a checklist (for users to fill out) in the form of a table as illustrated here: It is a HTML table housed in a Formatted Text field. I would like to prevent users from modifying the checklist items (first column of the table) or perform some sort of validation of the checklist items to ensure that they haven't be deformed. Having the items and the entries in a different field (and then disabling editing of the items field) is not an option as the list requires scrolling, and that would cause the items and entries to become misaligned. Is there a way to achieve what I'm trying to do?0Views0likes3Comments