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
JayPS_JayPS_ 

How to pass record data from a custom object to a Java Script Alert box using an S-control?

Hi,

 

I have built a custom object called "conferences" which has 2 fields named "Conference name" and "Number of attendees".  I need to pass data from these fields to a Java Script Alert box using an S-control. The S-control needs to be added as a custom link to the Conferences page layout. Can someone please help me out with the Javascript code I need to use to make this happen in my S-control?

 

P.S. I am very new to Javascript.

 

Thanks

JayPS_

LenyLeny

Hi,

 

You can use Merge Fields in the s-control body to assign their values to javascript vars and then manipulate them the way you want.

 

For exapmle:

 

var name = '{Lead.Name}';

alert(name);

 

 

Let me know how it goes,

 

Leny

JayPS_JayPS_

Hi,

 

Thanks for your help!

 

JayPS_