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
gmc74gmc74 

Question on having an S-Control run as soon as a field is changed, not when it is saved

    Hi Everyone,

I have written a simple S-Control to gather a number of different items from the Account when a case is created.  I want that data to be available to the person entering the case before they save it, but I can't seem to get the data to be available on the 'New' case screen, just when you edit an existing case.

I attached the same S-Control to a button and placed it on the screen, but it too is only available when the screen is in 'Edit' mode, not when it is first created (prior to being saved).

Any ideas?

Thanks,

Grant
TCAdminTCAdmin
Hello gmc74,

Unfortunately what you are looking for isn't possible through sControls.  The Edit page can't have a script or button added to.
gmc74gmc74
Thank you for the reply
Greg HGreg H
You could override the "New" button and prompt the user for selections using an sControl prior to sending to the creation screen.  This would introduce an extra step in your process but might be a suitable solution for the business.
-greg