You need to sign in to do that
Don't have an account?

Inline Editing Color Change
Hi
I have created a simple visualforce page using salesforce account tabbed view logic in order to accomodate background color/watermark requirement . It's nothing fancy - very simple. I also have inline editing enabled but when a user edits a field using inline editing, I want to change the color of the edited field - just like Salesforce standard page. My code is below. Could someone please help how to change color of the font when a field is edited using inline editing...
I have created a simple visualforce page using salesforce account tabbed view logic in order to accomodate background color/watermark requirement . It's nothing fancy - very simple. I also have inline editing enabled but when a user edits a field using inline editing, I want to change the color of the edited field - just like Salesforce standard page. My code is below. Could someone please help how to change color of the font when a field is edited using inline editing...
<apex:page standardController="Project_Governance_Form__c" showHeader="true"> <style type="text/css"> [id*=myId2] { font-size:small; weight: bold; color: Black; background-image:url('{!$Resource.GovForm_BG_6}'); background-attachment:fixed; background-position:center; } </style> <apex:tabPanel switchType="client" > <apex:tab label="Details" name="GovFrmDetails"> <apex:detail relatedList="true" inlineEdit="true" id="myId2" /> </apex:tab> </apex:tabPanel> </apex:page>
You'll first need to identify a common class, attribute or id prefix to all of your input fields when changed. Once you have that you can use jQuery to a new css class to all of the objects that match your jquery rule.