0

I have created a Global Action 'Log a Call Custom'

Here on the Task object I have a Picklist field Subject with four values -

'Please Select 'Option 1' 'Option 2' 'Option 3'

The default is 'Please Select'

I created a validation rule to prevent a user from saving the activity if the value in subject is 'Please Select'

This is my validation rule

ISPICKVAL (Subject, Please Select)

However i am getting a syntax error

Error: Syntax error. Missing ')'

what am i mising?

  • Single quotes around 'Please Select' – manjit5190 Jul 23 at 18:15
  • if i wrap 'Please select ' in single qotes i get different error Incorrect parameter type for function 'ISPICKVAL()'. Expected Picklist, received Text – user4947 Jul 23 at 18:17
  • 1
    May be a better setup to just have 'Option 1', 'Option 2', and 'Option 3' for the possible selections and then select the Required checkbox which should enforce what you're trying to achieve here. – Tim Hunter Jul 23 at 19:16
  • @TimHunter deleted my previous comment to you. Thanks for your suggestion!!. I only have 'Option 1', 'Option 2' , 'Option 3' . In the global action 'Log a call' set the predefined field value to 'Please Select', and then added the validation rule to ensure user selects a value other than 'Please Select'. Here i guess, selecting Required checkbox become void. – user4947 Jul 23 at 20:43
1

Use Subject= 'Please Select'.

As per documentation 'Subject' field datatype is combobox.

Task Fields doc

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.