I want to display validation on editable grid when user will make the value as null without clicking on any button.Is that possible?
Discussion posts and replies are publicly visible
You can add validations to an editable grid at individual row component as well as to an entire grid.
Please find the working example from the Appian documentation recipe-add-validations-to-an-inline-editable-grid.html
I want to apply validation for null value.I mean when value is null want to show validation.
Use the below code for null check as per your requirement:
Null Check for Single Value:
if(or(isnull(ri!value),ri!value=""),"Please enter value","")
Null Check for List: if(fn!isnull(ri!arrayValues),"Please enter values",if(length(ri!array)=0,"Please enter values",""))
if(fn!isnull(ri!arrayValues),"Please enter values",if(length(ri!array)=0,"Please enter values",""))
On validations field null value check will not work.
Can you please come up with your use case and your problem statement. If possible paste your code snippet.
As per the earlier link, you can implement validations on both field level and grid level.
I want validation to be shown on text field when value is null for it.I want this without clicking on any button.Simply when user unfocus it.I want validation when value is null.
As you said, we can't configure validations over a text field when it has no values.
But we can try giving the validation message on the editable grid field. Suppose, you're 5th row is not having the data, then you can point out that in the validation message.