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
VikasVikas 

Javascript to update a field in View Mode

Hi there,

I have a business case, where I have 3 picklist status1, status 2 and status 3.

I can easily create custom button on Leads / custom object to execute a script to update all three fields updated to a single static value. But to view this change in value - I require a page refresh.

Can I achieve this change in view mode or detail page screen without page refresh? Please let me know.

Thank you,

/Vikas Arora

NaishadhNaishadh
Hi,

Use sforce.describeSObject method for retriving all the value.
VikasVikas
Thank you,

Retrieving values are okay, when I update these pick lists - they get updated in salesforce but are not reflected till I refresh the page.

Can I edit the label of a field value in Salesforce detail page of an entity?

I hope you understand what my objective is?

Thank you,

/Vikas Arora.
CaptainObviousCaptainObvious
There's a "solution" in Salesforce Help & Training you may be interested in: How to use DHTML (Dynamic HTML) in an s-control in order to update fields without refreshing?
VikasVikas
Thank you Captian,

Can you please send me the web link for quick reference? I would really be thankful.

/Vikas Arora.
VikasVikas
Great,

Thanks a bunch!

/Vikas
ValentinRomelioValentinRomelio

How can I update a field in Edit mode (in javascript as an snippet in an S-Control)  without saving it to the database?

 

Regards,
Valentino Rijhen