• damienmagnan
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 7
    Replies

I'm able to create an URL S-Control which allow to reach the creation page of an event in avoiding recordtype selection.

My working code :

{!URLFOR($Action.Activity.NewEvent, null,
[RecordType="012200000000LM6",
who_id=Contact.Id,
retURL=$Request.retURL], false)}


My problem :
When I do the same thing with a custom object, the intermediate recordtype selection page is coming.

My Question:
How can I use URLFOR (or another function) on custom objects in order to avoid recordtype selection page?

I'm trying to access the components in my VisualForce using JavaScript to change the styles of the different elements, but I can't even access the elements themselves. And that's really really annoying.

For example that little code :


<script>
alert('{!$Component.testpage}');
alert(document);
alert(document.getElementById('{!$Component.testpage}'));
</script>


The successive messages are : "testpage", "[object HTMLDocument]", "null"...

Anyone can help pleaseeeeeee.


NB: that's a simple not-working example... I have a bigger work to do : showing/hiding rows in apex:pageBlockTable and in a drop down list on demand...
I am getting javascript error (null object) message while referencing inputbox. 
 
Problem: Visualforce is adding "j_id0:FormName:txtFirstName" in the Id
 
 
Has anyone been able to use the {IF} in Word's mailmerge to conditionally include text based on a value returned from Salesforce?
 
For example:
{ IF «OPPORTUNITY_NUM_SVCS_DEFINED» <> "1" "Some conditional text." " " }
 
The example from Microsoft shows:
{ IF {MERGEFIELD Country \* Caps } <> "United Kingdom" "We offer special rates on travel to the British Isles." " " }
 
Which I have successfully used before.