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
ValentinRomelioValentinRomelio 

javascript change displayed value of label

Is there a way to update a field on an account, for example an adress of a company in javascript

before its updated by the save button. (I retrieve this value via an external web service method)

 

The field is on an regular account pagelayout but I cant find the id which I can use

in javascript.

 

Does anybody has an example?

 

Regards,
Valentino Rijhen

 

 

werewolfwerewolf

If you want to do something like this poster, see my answer to him.

 

If you just want to change a value based on some other value post-save (or at save time anyway), use a workflow rule or Apex trigger.

ValentinRomelioValentinRomelio

Hi werewolf,

 

I just want to change a value in Edit mode (e.g. a postal code) based on the values I retrieve via a javascript external Web Service method call.

 

How can I accomplish this?

 

Thx in advance!

 

Regards,
Valentino Rijhen

werewolfwerewolf
You can only do that with a Visualforce page -- you can't modify a standard edit page like that.