function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pablo ArgentinaPablo Argentina 

Complex??

Hi guys.

I'm sure that you can help me with this.

 

I have two fields.

1.- PICKLIST (values - win, negotiation, lost)

2.- numeric field (Amount)

 

Want to create something like:

IF PICKLIST VALUE = WIN, Amount should NOT be 0

 

The idea is that you can't choose win if you do not fill in the AMOUNT field.

 

Any idea?

 

Thanks in advance

Pablo

Steve :-/Steve :-/

Are these the standard Stage and Amount fields on the Opportunity object?  

 

If it is, then you don't need to bother with evaluating the Stage picklist, you can just say:

 

AND(IsWon, Amount < 0.01)

 

 

Pablo ArgentinaPablo Argentina

No, it's another NON standard object!!!

Steve :-/Steve :-/

Okay, can you list the API Field Names then?  

 

Something like this should do what you're looking for

 

AND(ISPICKVAL(Picklist, "Win"), Amount < 0.01)

 

 

Pablo ArgentinaPablo Argentina

SPICKVAL -  Etapa__c  (thisone should be WIN

Cantidad_Unidad_Solicitadas__c = amount shuld be different to 0

Steve :-/Steve :-/

 

AND(ISPICKVAL(Etapa__c, "Win"), Cantidad_Unidad_Solicitadas__c < 0.01)

 

 

Pablo ArgentinaPablo Argentina

Thabks but no, still not working!!!

Steve :-/Steve :-/

Can you copy&paste the VR that you are using and the picklist values as they appear in the picklist menu?

Steve :-/Steve :-/

Pablo can you copy&paste the VR that you are using and the picklist values as they appear in the picklist menu like I asked?  I have tested my VR on my DE org and it works with no errors, so I have to know how your SFDC Org is set up in order to troubleshoot this.

Pablo ArgentinaPablo Argentina

Sorry for the delay.

I don't understand what's the VR.

 

thanks

Steve :-/Steve :-/

VR = Validation Rule

Pablo ArgentinaPablo Argentina
AND( ISPICKVAL(Etapa__c ,"Ganada"), Cantidad_Unidad_Solicitadas__c < 0.01 ) WILL APPEAR THE ERROR MESSAGE IF IT'S TRUE
Steve :-/Steve :-/

When you say the "it's not working"   what is happening? are you getting a syntax error?

Steve :-/Steve :-/

Are you all set or do you still need help with this?

Pablo ArgentinaPablo Argentina

No, actually i was working with this issue again. Not working, like nothing happens. No error message, but when i save it, nothing happens, i can set up the picklist as WIN with 0 values and it's OK!

 

 

Steve :-/Steve :-/

Can you copy&paste the picklist values using the Printable View?  If you are not getting a Syntax Error and the VR is not triggering a likely cause is that the value in your VR Formula does not match the Picklist options  

Pablo ArgentinaPablo Argentina

I've tried changeing the formula like < 0.01 or < 0 or <> 0 and still not working.

The formula should trigger the message when it's ok or when it's wrong?

 

 

AND( ISPICKVAL(Etapa__c ,"Ganada"), Cantidad_Unidad_Solicitadas__c < 0.01 )

 

 

Picklist val:

Perdida

Ganada

En negociacion

 

 

----------------------------------

Perdida = Lost

Ganada = Win

En negociacion = negotiating

Cantidad_Unidad_Solicitadas = Quantity of requested Units

Steve :-/Steve :-/

This formula will throw an error message if the user selects "Ganada" from the picklist and the quantity is less than 0.01 

 

What is the datatype of the "Cantidad_Unidad_Solicitadas__c" field?

 

AND(ISPICKVAL(Etapa__c, "Ganada"), Cantidad_Unidad_Solicitadas__c < 0.01)

 

 

Steve :-/Steve :-/

Can you post a screenshot of the VR Configuration screen?  

Pablo ArgentinaPablo Argentina

I don't know how to paste an image, but i can tell you 2 things that can help:

 

Cantidad_Unidad_Solicitadas is a numeric field (4 digits)

 

But there's a message just next to the box were i should type the error message that says that this message will appear when the formula condition is TRUE

 

Is this ok??

Steve :-/Steve :-/

You can take a screenshot and upload it to a secure file hosting site, like Flickr, Picasa, GoogleDocs, SlideShare, etc and paste a link to the URL of the image file

Steve :-/Steve :-/

Yes, that is what you want

Steve :-/Steve :-/

Pablo,

 

Are you all set with this or do you still need help?

Steve :-/Steve :-/

are you all set  or do you still need help with this?

Pablo ArgentinaPablo Argentina

Actually, no, never solved.

But i dimsiss whit it.

 

 

thanks anyway

Steve :-/Steve :-/

Not for nuthin' but it would have been nice if you'd gotten back to me.