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

Integrate Salesforce components like Date lookup tool in an S-control

Is it possible to show the date lookup-component (similar to the one that is available when you edit a Date-field) in my custom s-control, or do I have to write my own validation code in javascript and use a standard HTML Form text field?

I want to be able to add a button to my account, which will pop up a new window with edit-fields for some of my fields in the page layout. I have so many fields on my account page layout that it would be nice just to see a subset of them when i click the button.



There are two easier potential answers to your need.  The first is Visualforce, where the input object automatically takes on the characteristics of the standard Salesforce object.  Visualforce is only available in DE right now.

The second idea is to perhaps use record types with different layouts.  Clicking on a pushbutton could set the record type of the record and then call it in the new layout.  I think . . .

Hope this helps.

Thank you very much.
I'll  try that.

joakim wrote:

Is it possible to show the date lookup-component in my custom s-control


Got anyone a solution for this problem?

Maybe short code for testing it ?!