function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi Sandrine,
Please find solution. Throw error to user on save of button.
You can write trigger for this or you can write Process Builder. I am solving it with trigger.
trigger OpportunityTrigger on Opportunity (before Insert) { if(trigger.isBefore && Trigger.isInsert){ for(opportunity op:trigger.new){ if(op.StageName=='' || op.StageName==null){ op.StageName.addError('StageName is required'); } } } }
Hi Sandrine,
Please find solution. Throw error to user on save of button.
You can write trigger for this or you can write Process Builder. I am solving it with trigger.
Please let me know it is working or not.If it is working please mark best answer so that other people would take reference from it.
Thanks
All Answers
Have you tried using standard validation rules? That should be enough to show error message.
Thanks,
Hi Sandrine,
Please find solution. Throw error to user on save of button.
You can write trigger for this or you can write Process Builder. I am solving it with trigger.
Please let me know it is working or not.If it is working please mark best answer so that other people would take reference from it.
Thanks