• billyweb99
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

The  Picklist has an option to choose -- None --

 

In my application, I want the user to always choose an item.

 

I have been unsuccessful in developing a validation rule that puts an Error Message and Does NOT Save the records.

 

Codes Checked

====

 

ISPICKVAL(CustomObject__c,"null") in the Debug Log

 

Values Found:  CustomObject__c = null

Result: Pass-Continue

 

This ISPICKVAL should be true and the Error Message Box Shown

====

Tried the Following ----

 

OR(ISPICKVAL(CustomObject__c, "Item A"),ISPICKVAL(CustomObject__C,"Item B"))

 

Value Found: CustomObject__c = Item A

 

First ISPICKVAL would be True and the Second ISPICKVAL should be so Expression is True

 

Result: Pass-Continue

====

Changed the "null" to "--None--"

 

If anyone has any ideas it would be appreciated.

 

Thank you

 

 

I have been developing "trigger " code for the first time.

 

I have two questions:

 

Question 1.  I would print out certain aspects of the code as it is executing ... My understanding is that you can use the System.debug statement and look at the Debug Log the information between the single quotes ' Field Print'.  Unfortunately, this is not working for me. 

 

 

 Triigger   Name on  CustomObject__c   (Before Insert) {
           System.debug ('ClientAccountI');
}

 

Question 2.  I would like to print a variable instead of a Field in Quotes.  Do I need to set a vaiable?

 

Example: Trigger Name on CustomObject_c(Before Insert) {

            System.debug (CustomObject__c.variable);

}

   

 

Any help would be appreciated.

Thank you

 

The  Picklist has an option to choose -- None --

 

In my application, I want the user to always choose an item.

 

I have been unsuccessful in developing a validation rule that puts an Error Message and Does NOT Save the records.

 

Codes Checked

====

 

ISPICKVAL(CustomObject__c,"null") in the Debug Log

 

Values Found:  CustomObject__c = null

Result: Pass-Continue

 

This ISPICKVAL should be true and the Error Message Box Shown

====

Tried the Following ----

 

OR(ISPICKVAL(CustomObject__c, "Item A"),ISPICKVAL(CustomObject__C,"Item B"))

 

Value Found: CustomObject__c = Item A

 

First ISPICKVAL would be True and the Second ISPICKVAL should be so Expression is True

 

Result: Pass-Continue

====

Changed the "null" to "--None--"

 

If anyone has any ideas it would be appreciated.

 

Thank you