function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dotnetericdotneteric 

Lookup that calls a web serivce for fields when in new and edit mode

There is a business requirement to populate several fields with one of multiple values retrieved from a web service call when in new and edit mode for an Opportunity. 
 
After some brainstorming, we've come up with two concepts:
1) Create an S-Control and embed it in the page layout so that it displays in new/edit mode, performs the webservice calls and populates the dropdowns, and saves the values for those fields.  (My understanding is that you cannot display an S-Control in new or edit mode, so scratch that)
2) Override the new and edit buttons, and either:
- create custom new and edit page S-Controls that show only those fields that we want to populate with values from the webservice then put the user in edit mode for the rest of the fields
- create custom new and edit page S-Controls for all fields.
 
Since #1 is not possible, I guess #2 is the only solution right now.  Does anyone have an alternate solution?
 
Thanks.