• Anthony
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
I've learned how to pre-populate a form using an S-Control and/or Custom Link.
 
Is it possible to automatically submit the pre-populated form without user intervention?
 
Ultimately, I'd like to pre-populate several different forms and auto-submit them.  Sounds like a job for API man, however, I don't have access to the API due to this being a Team Edition version.
 
I'm workink with AJAX.  Any method that doesn't require the API would be valuable.
 
If you don't think this is possible, that feedback would be useful as well!
 
Thanks!
 
Anthony
I'm trying to copy some values from one multi-select picklist to another.  I'm using an S-Control, but am open to anything that might work that doesn't require the API.  I am trying to pass some multi-select picklist data from the Contact form to another custom related list form.
 
I'm using Team Edition, so do not have access to the API.  Crippleware.  At least S-Controls are available!
 
The API seems to allow for the passing of multiple values to a picklist field by having each value seperated by a semi-colon.  This method does not seem to work with a Custom Link solution, unless I'm missing something.  While the example below works, it does not work correctly as the semi-colons are displayed rather than acting as delimiters.  For example, if I have two values selected, say "Wholesaler" and "Broker", the final copied value displays in the target multi-select picklist as "Wholesaler;Broker" rather than being broken into two different lines & values.  Here is my S-Control code:
 
 
Code:
<html>
<head>
</head>
<body onLoad="document.myForm.submit()"> 
<form method="POST" action="/a04/e" name="myForm"> 
<input type=hidden name="retURL" id="CF00N50000001U9bd_lkid" value="/{!Contact.Id}">
<input type=hidden name="CF00N50000001U9bd_lkid" id="CF00N50000001U9bd_lkid" value="{!Contact.Id}"> 

<input type=hidden name="CF00N50000001U9bd" id="CF00N50000001U9bd" value="{!Contact.Name}"> 
<input type=hidden name="CF00N50000001U9bc" id="CF00N50000001U9bc" value="{!Account.Name}"> 
<input type=hidden name="00N50000001U9ba" id="00N50000001U9ba" value="{!Contact.Start_Date__c}"> 

<input type=hidden name="00N50000001UB3a" id="00N50000001UB3a" value="{!Contact.Position__c}"> 

<input type=hidden name="00N50000001U9bb" id="00N50000001U9bb" value="{!Contact.Position_Description__c}"> 

</body>
</html>

 
The multi-select picklist is from {!Contact.Position__c} and is being written to 00N50000001UB3a.
 
Suggestions to a workaround or fix are very welcome!
 
Thanks,
 
Anthony
I'm trying to copy some values from one multi-select picklist to another.  I'm using an S-Control, but am open to anything that might work that doesn't require the API.  I am trying to pass some multi-select picklist data from the Contact form to another custom related list form.
 
I'm using Team Edition, so do not have access to the API.  Crippleware.  At least S-Controls are available!
 
The API seems to allow for the passing of multiple values to a picklist field by having each value seperated by a semi-colon.  This method does not seem to work with a Custom Link solution, unless I'm missing something.  While the example below works, it does not work correctly as the semi-colons are displayed rather than acting as delimiters.  For example, if I have two values selected, say "Wholesaler" and "Broker", the final copied value displays in the target multi-select picklist as "Wholesaler;Broker" rather than being broken into two different lines & values.  Here is my S-Control code:
 
 
Code:
<html>
<head>
</head>
<body onLoad="document.myForm.submit()"> 
<form method="POST" action="/a04/e" name="myForm"> 
<input type=hidden name="retURL" id="CF00N50000001U9bd_lkid" value="/{!Contact.Id}">
<input type=hidden name="CF00N50000001U9bd_lkid" id="CF00N50000001U9bd_lkid" value="{!Contact.Id}"> 

<input type=hidden name="CF00N50000001U9bd" id="CF00N50000001U9bd" value="{!Contact.Name}"> 
<input type=hidden name="CF00N50000001U9bc" id="CF00N50000001U9bc" value="{!Account.Name}"> 
<input type=hidden name="00N50000001U9ba" id="00N50000001U9ba" value="{!Contact.Start_Date__c}"> 

<input type=hidden name="00N50000001UB3a" id="00N50000001UB3a" value="{!Contact.Position__c}"> 

<input type=hidden name="00N50000001U9bb" id="00N50000001U9bb" value="{!Contact.Position_Description__c}"> 

</body>
</html>

 
The multi-select picklist is from {!Contact.Position__c} and is being written to 00N50000001UB3a.
 
Suggestions to a workaround or fix are very welcome!
 
Thanks,
 
Anthony
Hi all!
 
I am working on developing a scon to copy an Account just like the copy button on Opportunity scene.
But a multi -select item was found not  be copied well
 
For Example, The original item has  multi-selected  a,b and c. the copied item will be shown as "a;b;c"  in one row.
 
 
The source code of the s-con is as following.
 
<body onLoad="document.myForm.submit()">
<form method="POST" action="/001/e" name="myForm">
<input type=hidden name="RecordType" id="RecordType" value="012100000008S5Z">
 
<input type=hidden name="00N10000000IlGg" id="00N10000000IlGg" value="{!Account_MHFGSections3}">

</body> 
 
Bye the way, I knew that the same problem could be done by using URL as following
But for this case I have over 50 choices, so the URL pattern will not work .
 
Could  anybody  give me a hint?
 
  • September 26, 2006
  • Like
  • 0