• ccgorman
  • NEWBIE
  • 10 Points
  • Member since 2012

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

Currently users must select the Contact Record Type two times when they select "New Contact".  Additionally, when a new user is created from an existing Account, the address/phone information do not default into the contact.  I have been told that I have a problem with the trigger below, from the Contact & Organization module of the NPSP (that was modified along the way by someone in our org).  Could someone please advise me how to fix it?

 

<apex:page action="{!URLFOR($Action.Contact.NewContact, null, [retURL='/003/o'], true)}" standardController="contact">
</apex:page>

 

I have been told that:

 

I have investigated in your organization and got to the bottom of your issue. The reason why you have to click twice on the "Continue" button is because of a VisualForce Page. This Visualforce Page acts as a Standard Action Override to new Contacts, created by Deborah Anderson. This is also pretty much the reason why the Address on Contacts is not populating as well.

The URL of the first "Continue" button indicates a return URL but is overridden by a return URL via the Visualforce Page thus taking you to a new page with the same "Continue" button but with a different URL referencing directly to the Visualforce Page.

Note:
(a) URL on the first button:
https://na8.salesforce.com/setup/ui/recordtypeselect.jsp?ent=Contact&
retURL=%2F001C000000x2e2iIAA%2Fd%3FretURL%3Dhttps%253A%252F
%252Fnpe01.na8.visual.force.com%252Fapex%252FaccountViewOverride%
253Fid%253D001C000000x2e2i%2526sfdc.override%253D1%26nooverride
%3D1&save_new_url=%2F003%2Fe%3FretUR
%3D%252F001C000000x2e2iIAA%252Fd%253FretURL%253Dhttps%25253
A%25252F%25252Fnpe01.na8.visual.force.com%25252Fapex%25252Facco
untViewOverride%25253Fid%25253D001C000000x2e2i%252526sfdc.overrid
e%25253D1%2526nooverride%253D1%26accid%3D001C000000x2e2i

(b) URL on the second button:
https://na8.salesforce.com/setup/ui/recordtypeselect.jsp?ent=Contact&
retURL=%2F003%2Fosave_new_url=%2F003%2Fe%3FretURL%3Dhttps%2
53A%252F%252Fnpe01.na8.visual.force.com%252Fapex%252FContactNew
Override%253FretURL%253D%25252F001C000000x2e2iIAA%25252Fd%25
253FretURL%25253Dhttps%2525253A%2525252F%2525252Fnpe01.na8.vi
sual.force.com%2525252Fapex%2525252FaccountViewOverride%2525253Fi
d%2525253D001C000000x2e2i%25252526sfdc.override%2525253D1%252
526nooverride%25253D1%2526accid%253D001C000000x2e2i%2526Recor
dType%253D01280000000Q0H3%2526ent%253DContact%2526save_new
%253D1%2526sfdc.override%253D1&nooverride=1

Thanks in advance for any assistance you can provide.

Christine

How can I set a date field to blank/null when using a Case/If statement?

 

IF (Due__c = True,  TODAY() + 7,Due_Date__c = ????)

 

When I select "Create New contact", I get the screen asking me to Select Contact Record type.  After I make my selection and click Continue, I am presented with the same screen.  Again, I make the same choice and THEN the New Contact Edit screen is presented. 

 

We are based on the NPSP.

 

Thanks for your help.

How can I set a date field to blank/null when using a Case/If statement?

 

IF (Due__c = True,  TODAY() + 7,Due_Date__c = ????)