• Sarah Robertson 4
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Hi i'm trying to create a trigger which fires before a record is saved, when the mandatory field support group is not completed. It's not working any ideas where i'm going wrong ? 

Thanks here 's my code : 

trigger UpdateSupportGroup on Account (before insert) {
    For(Account a : Trigger.new){
    if ( ISPICKVAL( a.Support_Group__c, "--None--")){
   
    

        a.Support_Group__c='MSP';
    }
}}
Hi Wondering if someone can help very stuck here ! 

I've got a field on the contact page - postal address its a lookup field.

When the users select a postal address via the magnifying glass its displaying the postal address id. What i want to do is to prevent users changing this through the edit page on the contact, prevent them from editing it in the text box withouth going through the magnifying glass. 

Any ideas on how we can achieve this greatly appreciated ! User-added image