Activity Forums Salesforce® Discussions Validation rule error when existing record is edited

  • Validation rule error when existing record is edited

  • Satyakam

    Member
    April 28, 2016 at 12:08 pm

    What is the validation rule to Produce an error, if existing record is edited with first_name as 'ok'.

  • Gourav

    Member
    April 28, 2016 at 1:03 pm

    If you are creating a validation rule on contact then use this in Error condition Formula LastName = 'ok'  and provide some error message to show. it will validation rule check the condition on both time when use create the record or edit any record.

  • Sudhir

    Member
    June 17, 2017 at 4:45 am

    This should wok for you. Taking Contact object as a reference..

    AND(NOT(ISNEW()), FirstName == 'ok')

  • shariq

    Member
    July 4, 2017 at 10:13 pm

    Hi Satyakam,

    You can try this validation rule:-

    AND(ISCHANGED( FirstName ) , FirstName =='ok')

    Hope this helps.

Viewing 1 - 4 of 4 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos