Leap Year

I have a field where a user can enter a year and I want to calculate if it is a Leap year or not using data transform when I am trying to calculate it using Year%4 == 0 data transform is throwing an error saying cannot assign operators to a property how do I solve this

and can you tell me to check if the name field only contains alphabets I know we can use property level validate but I want to do it using edit validate can you tell me which function I should select and which regular expression I should use?

@suryavamsiR17211459

Try this. If you will give leap year it will give you true else false.

Hi @Abhishek Tripathi,

Thank you for replying i was able to do it using the integer property and this expression “(Param.Year%4==0&&Param.Year%100!=0)||(Param.Year%400==0)” and set validation to the property.

If possible would you be able to answer to my second question about the Edit validate rule

Thank you

@suryavamsiR17211459

If it solves your problem then pls accept the solution.

For 2nd try this.

Hi @suryavamsiR17211459,

Your can use this edit validate function “AlphabeticValidation”

@GiridharanVenkat

It will not handle the space between the first name and last name.

You have to apply this to both first name and last name property if they are explicitly defined.

So , it is up to Surya either go with Alphabetic validation which will be applied to both the property or if there is a single property Full name and you are getting first name then space then second name then go with above approach.