CSS button color issues

  • 1
  • Question
  • Updated 8 months ago
  • Answered
Hello community, could use some help trying to change specific button colors. Full disclosure, just starting to learn how to code and use CSS. Here is what i've got so far:

I have a CSS class with the following script:

.purplebuttoncolor { background-color: #D2B4DE; border-color: #D2B4DE; }

I applied this to the button in the advanced section of the button, and it works fine. The problem occurs after I interact with the button. Once the button is used on the page, it reverts back to the overall button color theme of the page.

Please help!
Photo of Nicholas L.

Nicholas L.

  • 382 Points 250 badge 2x thumb

Posted 8 months ago

  • 1
Photo of Matt Small

Matt Small

  • 1,182 Points 1k badge 2x thumb
Hi Nicholas, 


Can you shoot over your XML so I can take a look? 

Cheers,
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Let me know if you run into any problems
Photo of Nicholas L.

Nicholas L.

  • 382 Points 250 badge 2x thumb
<skuidpage unsavedchangeswarning="yes" personalizationmode="server" useviewportmeta="true" showsidebar="true" showheader="false" tabtooverride="Account_Success_Management_Note__c" theme="Lightning Design">
    <models>
        <model id="AccountSuccessManagementNote" limit="100" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Account_Success_Management_Note__c" type="">
            <fields>
                <field id="Name"/>
                <field id="CreatedDate"/>
                <field id="Account__c"/>
                <field id="Account__r.Name"/>
                <field id="Purpose_of_Visit__c"/>
                <field id="Created_By_Name__c"/>
                <field id="Created_By_Region__c"/>
                <field id="Current_PK_Usage_Rate_Per_Month__c"/>
                <field id="How_many_PK_units_in_freezer__c"/>
                <field id="Latest_Note__c"/>
                <field id="Were_any_objections_encountered__c"/>
                <field id="What_did_you_present__c"/>
                <field id="Product__c"/>
                <field id="Sage_Account_Number__c"/>
                <field id="Summary_Next_Steps__c"/>
                <field id="What_was_the_outcome__c"/>
                <field id="Who_did_you_see__c"/>
                <field id="Next_Steps__c"/>
                <field id="Account__r.Bill_To_Top20PK__c"/>
                <field id="Account__r.Account_Type2__c"/>
                <field id="Account__r.RecordType.Name"/>
                <field id="Activity_Date__c"/>
                <field id="Account__r.Sage_Account_Number__c"/>
                <field id="Account__r.BillingAddress"/>
                <field id="Account__r.BillingCity"/>
                <field id="Account__r.BillingStreet"/>
                <field id="Account__r.BillingPostalCode"/>
                <field id="Account__r.Buying_Group_Affiliation__c"/>
                <field id="Id"/>
                <field id="Activity_Month__c"/>
                <field id="Account__r.of_Orders_within_the_last_90_days__c"/>
                <field id="Account__r.of_Shipments_within_last_90_days__c"/>
                <field id="Account__r.Total_Invoice_amount__c"/>
                <field id="Account__r.Active_Buying_Group_Affiliation__c"/>
                <field id="Account__r.Active_Freight_Record__c"/>
                <field id="Account__r.AnnualRevenue"/>
                <field id="Account__r.Available_Balance__c"/>
                <field id="Account__r.CPA_Type__c"/>
                <field id="Account__r.CPA_Expiring_Date__c"/>
                <field id="Account__r.CPA_Start_Date__c"/>
                <field id="Account__r.CY_AG_Sales_NEW__c"/>
                <field id="Account__r.CY_CX_Sales_NEW__c"/>
                <field id="Account__r.CY_PK_Sales_NEW__c"/>
                <field id="Account__r.CY_Sales_NEW__c"/>
                <field id="Account__r.CY_to_PY_AG__c"/>
                <field id="Account__r.CY_to_PY_CX__c"/>
                <field id="Account__r.PY_Recovered_Sales__c"/>
                <field id="Account__r.PY_AG_Sales_NEW__c"/>
                <field id="Account__r.PY_CX_Sales_NEW__c"/>
                <field id="Account__r.PY_PK_Sales_NEW__c"/>
                <field id="Account__r.PY_Sales_NEW__c"/>
                <field id="Account__r.Id"/>
                <field id="Plan_Start_Date__c"/>
                <field id="Secondary_Objective__c"/>
            </fields>
            <conditions>
                <condition type="multiple" field="Account__c" operator="in" inactive="true" enclosevalueinquotes="true" name="__autofilter__Account__c" state="filterableoff" value=""/>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Account__r.RecordType.Name" state="filterableoff" inactive="true" name="Account__r.RecordType.Name" operator="="/>
                <condition type="fieldvalue" value="true" enclosevalueinquotes="false" field="Account__r.Bill_To_Top20PK__c" state="filterableoff" inactive="true" name="Account__r.Bill_To_Top20PK__c" operator="="/>
                <condition type="fieldvalue" field="Activity_Date__c" operator="gte" inactive="true" enclosevalueinquotes="false" name="__autofilter__start__Activity_Date__c" state="filterableoff" value=""/>
                <condition type="fieldvalue" field="Activity_Date__c" operator="lte" inactive="true" enclosevalueinquotes="false" name="__autofilter__end__Activity_Date__c" state="filterableoff" value=""/>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Id" operator="=" state="filterableoff" inactive="true" name="DetailsAMSId"/>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Account__c" fieldtargetobjects="Account" state="filterableoff" inactive="true" name="Account__c" operator="="/>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Account__r.Id" state="filterableoff" inactive="true" name="Account__r.Id"/>
                <condition type="fieldvalue" field="AMS_Status__c" operator="=" inactive="true" enclosevalueinquotes="true" name="__autofilter__AMS_Status__c" state="filterableoff" value=""/>
            </conditions>
            <actions/>
        </model>
        <model id="DHC_Contacts" limit="20" query="true" createrowifnonefound="false" datasource="salesforce" type="" sobject="DHC_Physician_Contacts__c">
            <fields>
                <field id="First_Name__c"/>
                <field id="Full_Name__c"/>
                <field id="Last_Name__c"/>
                <field id="NPI__c"/>
                <field id="Definitive_Email__c"/>
                <field id="Email__c"/>
                <field id="Definitive_Phone__c"/>
                <field id="Mobile_Phone__c"/>
                <field id="Office_Phone__c"/>
                <field id="Phone__c"/>
                <field id="Primary_Practice_Phone_Number__c"/>
                <field id="Primary_Specialty__c"/>
                <field id="City__c"/>
                <field id="County__c"/>
                <field id="Added" uionly="true" displaytype="BOOLEAN" ogdisplaytype="TEXT"/>
            </fields>
            <conditions>
                <condition type="modelmerge" value="" field="Id" operator="!=" model="DHC_Physician_Relationship" enclosevalueinquotes="true" mergefield="DHC_Physician_Contacts__c" novaluebehavior="deactivate" fieldtargetobjects="DHC_Physician_Contacts__c"/>
            </conditions>
            <actions/>
        </model>
        <model id="Accounts" limit="100" query="true" createrowifnonefound="false" datasource="salesforce" type="" sobject="Account">
            <fields>
                <field id="RecordTypeId"/>
                <field id="Id"/>
                <field id="Name"/>
                <field id="Phone"/>
                <field id="Type"/>
                <field id="Active_Buying_Group_Affiliation__c"/>
                <field id="Active_Pricing_Records__c"/>
                <field id="BillingCity"/>
                <field id="BillingCountry"/>
                <field id="BillingState"/>
                <field id="BillingPostalCode"/>
                <field id="BillingStreet"/>
                <field id="Buying_Group_Affiliation__c"/>
                <field id="CPA_Expiring_Date__c"/>
                <field id="CPA_Start_Date__c"/>
                <field id="CY_AG_Sales_NEW__c"/>
                <field id="CY_CX_Sales_NEW__c"/>
                <field id="CY_PK_Sales_NEW__c"/>
                <field id="CY_Sales_NEW__c"/>
                <field id="Customer_Pricing_Agreement__c"/>
                <field id="E_Mail_Address__c"/>
                <field id="PK_Units_Ordered_Last_Year__c"/>
                <field id="PK_Units_Ordered_This_Year__c"/>
                <field id="Sage_Account_Number__c"/>
                <field id="ShippingCity"/>
                <field id="ShippingCountry"/>
                <field id="ShippingState"/>
                <field id="ShippingStreet"/>
                <field id="ShippingPostalCode"/>
                <field id="Stat_Group_2__c"/>
                <field id="Credit_Hold__c"/>
                <field id="Credit_Level_Total2__c"/>
                <field id="Available_Balance__c"/>
                <field id="Hold_Status__c"/>
                <field id="Terms__c"/>
                <field id="Credit_Limit__c"/>
                <field id="PY_AG_Sales_NEW__c"/>
                <field id="PY_CX_Sales_NEW__c"/>
                <field id="PY_Sales_NEW__c"/>
                <field id="Bill_To_Top20PK__c"/>
                <field id="PY_PK_Sales_NEW__c"/>
                <field id="RecordType.Name"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="RecordType.Name" state="filterableoff" inactive="true" name="RecordType.Name" operator="="/>
                <condition type="fieldvalue" value="Customer Account" enclosevalueinquotes="true" field="RecordType.Name" state="filterableon" inactive="false" name="RecordType.Name1" operator="="/>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Id" state="filterableoff" inactive="true" name="Id"/>
                <condition type="fieldvalue" value="true" enclosevalueinquotes="false" field="Bill_To_Top20PK__c" state="filterableoff" inactive="true" name="Bill_To_Top20PK__c"/>
                <condition type="fieldvalue" value="false" enclosevalueinquotes="false" field="Bill_To_Top20PK__c" state="filterableoff" inactive="true" name="Bill_To_Top20PK__c1"/>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true"/>
            </conditions>
            <actions/>
        </model>
        <model id="DHC_Physician_Relationship" limit="20" query="true" createrowifnonefound="false" datasource="salesforce" type="" sobject="DHC_Acct_Contact_Relationship__c">
            <fields>
                <field id="DHC_Physician_Contacts__r.First_Name__c"/>
                <field id="DHC_Physician_Contacts__r.Full_Name__c"/>
                <field id="DHC_Physician_Contacts__r.Primary_Specialty__c"/>
                <field id="DHC_Physician_Contacts__r.Definitive_Phone__c"/>
                <field id="DHC_Physician_Contacts__r.Definitive_Email__c"/>
                <field id="DHC_Physician_Contacts__c"/>
                <field id="DHC_Physician_Contacts__r.Name"/>
                <field id="Select" uionly="true" displaytype="BOOLEAN" ogdisplaytype="TEXT"/>
                <field id="Account__c"/>
                <field id="Account__r.Name"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Account__c" fieldtargetobjects="Account" state="filterableoff" inactive="true" name="Account__c"/>
            </conditions>
            <actions/>
        </model>
        <model id="AccountSuccessManagementNote_HCharts" limit="" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Account_Success_Management_Note__c" type="aggregate" processonclient="false">
            <fields>
                <field id="Id" name="countId" function="COUNT"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="2018-01-01T04:55:00.000Z" enclosevalueinquotes="false" field="CreatedDate" operator="gt"/>
            </conditions>
            <actions/>
            <groupby method="simple">
                <field id="CreatedDate" name="Year" function="CALENDAR_YEAR"/>
                <field id="Were_any_objections_encountered__c" name="wereanyobjectionsencounte"/>
                <field id="CreatedDate" name="Quarter" function="CALENDAR_QUARTER"/>
                <field id="CreatedDate" name="Month" function="CALENDAR_MONTH"/>
            </groupby>
        </model>
        <model id="Contacts" limit="20" query="true" createrowifnonefound="false" datasource="salesforce" type="" sobject="Contact">
            <fields>
                <field id="RecordTypeId"/>
                <field id="Email"/>
                <field id="FirstName"/>
                <field id="Full_Name__c"/>
                <field id="Name"/>
                <field id="HomePhone"/>
                <field id="Select" uionly="true" displaytype="BOOLEAN" ogdisplaytype="TEXT" defaultvaluetype="fieldvalue"/>
                <field id="LastName"/>
                <field id="Phone"/>
                <field id="Title"/>
                <field id="Show_Contacts" uionly="true" displaytype="BOOLEAN" label="Add Non-Physician Contact" ogdisplaytype="TEXT"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="AccountId" fieldtargetobjects="Account" state="filterableoff" inactive="true" name="AccountId"/>
            </conditions>
            <actions/>
        </model>
        <model id="This_Accounts" limit="1" query="true" createrowifnonefound="false" datasource="salesforce" type="" sobject="Account">
            <fields>
                <field id="RecordTypeId"/>
                <field id="Id"/>
                <field id="Name"/>
                <field id="Phone"/>
                <field id="Type"/>
                <field id="Active_Buying_Group_Affiliation__c"/>
                <field id="Active_Pricing_Records__c"/>
                <field id="BillingCity"/>
                <field id="BillingCountry"/>
                <field id="BillingState"/>
                <field id="BillingPostalCode"/>
                <field id="BillingStreet"/>
                <field id="Buying_Group_Affiliation__c"/>
                <field id="CPA_Expiring_Date__c"/>
                <field id="CPA_Start_Date__c"/>
                <field id="CY_AG_Sales_NEW__c"/>
                <field id="CY_CX_Sales_NEW__c"/>
                <field id="CY_PK_Sales_NEW__c"/>
                <field id="CY_Sales_NEW__c"/>
                <field id="Customer_Pricing_Agreement__c"/>
                <field id="E_Mail_Address__c"/>
                <field id="PK_Units_Ordered_Last_Year__c"/>
                <field id="PK_Units_Ordered_This_Year__c"/>
                <field id="Sage_Account_Number__c"/>
                <field id="ShippingCity"/>
                <field id="ShippingCountry"/>
                <field id="ShippingState"/>
                <field id="ShippingStreet"/>
                <field id="ShippingPostalCode"/>
                <field id="Stat_Group_2__c"/>
                <field id="RecordType.Name"/>
                <field id="Credit_Hold__c"/>
                <field id="Credit_Level_Total2__c"/>
                <field id="Available_Balance__c"/>
                <field id="Hold_Status__c"/>
                <field id="Terms__c"/>
                <field id="Credit_Limit__c"/>
                <field id="PY_AG_Sales_NEW__c"/>
                <field id="PY_CX_Sales_NEW__c"/>
                <field id="PY_Sales_NEW__c"/>
                <field id="Bill_To_Top20PK__c"/>
                <field id="PY_PK_Sales_NEW__c"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Id" state="filterableoff" inactive="true" name="Id"/>
            </conditions>
            <actions/>
        </model>
        <model id="AccountSuccessManagementNote_NewRecord" limit="1" query="false" createrowifnonefound="false" datasource="salesforce" sobject="Account_Success_Management_Note__c" type="">
            <fields>
                <field id="Name"/>
                <field id="CreatedDate"/>
                <field id="Account__c"/>
                <field id="Account__r.Name"/>
                <field id="Purpose_of_Visit__c"/>
                <field id="Created_By_Name__c"/>
                <field id="Created_By_Region__c"/>
                <field id="Current_PK_Usage_Rate_Per_Month__c"/>
                <field id="How_many_PK_units_in_freezer__c"/>
                <field id="Latest_Note__c"/>
                <field id="Were_any_objections_encountered__c"/>
                <field id="What_did_you_present__c"/>
                <field id="Product__c"/>
                <field id="Sage_Account_Number__c"/>
                <field id="Summary_Next_Steps__c"/>
                <field id="What_was_the_outcome__c"/>
                <field id="Who_did_you_see__c"/>
                <field id="Next_Steps__c"/>
                <field id="Account__r.Bill_To_Top20PK__c"/>
                <field id="Account__r.Account_Type2__c"/>
                <field id="Account__r.RecordType.Name"/>
                <field id="Activity_Date__c"/>
                <field id="Account__r.Sage_Account_Number__c"/>
                <field id="Account__r.BillingAddress"/>
                <field id="Account__r.BillingCity"/>
                <field id="Account__r.BillingStreet"/>
                <field id="Account__r.BillingPostalCode"/>
                <field id="Account__r.Buying_Group_Affiliation__c"/>
                <field id="Id"/>
                <field id="Activity_Month__c"/>
                <field id="Account__r.of_Orders_within_the_last_90_days__c"/>
                <field id="Account__r.of_Shipments_within_last_90_days__c"/>
                <field id="Account__r.Total_Invoice_amount__c"/>
                <field id="Account__r.Active_Buying_Group_Affiliation__c"/>
                <field id="Account__r.Active_Freight_Record__c"/>
                <field id="Account__r.AnnualRevenue"/>
                <field id="Account__r.Available_Balance__c"/>
                <field id="Account__r.CPA_Type__c"/>
                <field id="Account__r.CPA_Expiring_Date__c"/>
                <field id="Account__r.CPA_Start_Date__c"/>
                <field id="Account__r.CY_AG_Sales_NEW__c"/>
                <field id="Account__r.CY_CX_Sales_NEW__c"/>
                <field id="Account__r.CY_PK_Sales_NEW__c"/>
                <field id="Account__r.CY_Sales_NEW__c"/>
                <field id="Account__r.CY_to_PY_AG__c"/>
                <field id="Account__r.CY_to_PY_CX__c"/>
                <field id="Account__r.PY_Recovered_Sales__c"/>
                <field id="Account__r.PY_AG_Sales_NEW__c"/>
                <field id="Account__r.PY_CX_Sales_NEW__c"/>
                <field id="Account__r.PY_PK_Sales_NEW__c"/>
                <field id="Account__r.PY_Sales_NEW__c"/>
                <field id="Account__r.Id"/>
                <field id="Contact__c"/>
                <field id="Contact__r.Name"/>
                <field id="Contact__r.Id"/>
                <field id="AMS_Status__c"/>
                <field id="Plan_Start_Date__c"/>
                <field id="Add_SFDC_Contact__c"/>
                <field id="Create_AMS_Task__c"/>
                <field id="Secondary_Objective__c"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Id" fieldtargetobjects="Account" state="filterableoff" inactive="true" name="Id"/>
            </conditions>
            <actions/>
        </model>
        <model id="New_Contact" limit="20" query="true" createrowifnonefound="false" datasource="salesforce" type="" sobject="Contact">
            <fields>
                <field id="RecordTypeId"/>
                <field id="Email"/>
                <field id="FirstName"/>
                <field id="Full_Name__c"/>
                <field id="Name"/>
                <field id="HomePhone"/>
                <field id="Select" uionly="true" displaytype="BOOLEAN" ogdisplaytype="TEXT" defaultvaluetype="fieldvalue"/>
                <field id="LastName"/>
                <field id="Phone"/>
                <field id="Title"/>
                <field id="AccountId"/>
                <field id="Account.Name"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="AccountId" fieldtargetobjects="Account" state="filterableoff" inactive="true" name="AccountId"/>
            </conditions>
            <actions/>
        </model>
        <model id="New_Account" limit="1" query="true" createrowifnonefound="false" datasource="salesforce" type="" sobject="Account">
            <fields>
                <field id="RecordTypeId"/>
                <field id="Name"/>
                <field id="Est_Date__c"/>
                <field id="BillingCity"/>
                <field id="BillingStreet"/>
                <field id="BillingState"/>
                <field id="BillingPostalCode"/>
                <field id="BillingCountry"/>
                <field id="Id"/>
                <field id="E_Mail_Address__c"/>
                <field id="Phone"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="012E0000000oQXv" enclosevalueinquotes="true" field="RecordTypeId" fieldtargetobjects="RecordType"/>
            </conditions>
            <actions/>
        </model>
        <model id="AccountSuccessManagementNote_Calendar_Planned" limit="100" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Account_Success_Management_Note__c" type="">
            <fields>
                <field id="Name"/>
                <field id="CreatedDate"/>
                <field id="Account__c"/>
                <field id="Account__r.Name"/>
                <field id="Purpose_of_Visit__c"/>
                <field id="Created_By_Name__c"/>
                <field id="Created_By_Region__c"/>
                <field id="Current_PK_Usage_Rate_Per_Month__c"/>
                <field id="How_many_PK_units_in_freezer__c"/>
                <field id="Latest_Note__c"/>
                <field id="Were_any_objections_encountered__c"/>
                <field id="What_did_you_present__c"/>
                <field id="Product__c"/>
                <field id="Sage_Account_Number__c"/>
                <field id="Summary_Next_Steps__c"/>
                <field id="What_was_the_outcome__c"/>
                <field id="Who_did_you_see__c"/>
                <field id="Next_Steps__c"/>
                <field id="Account__r.Bill_To_Top20PK__c"/>
                <field id="Account__r.Account_Type2__c"/>
                <field id="Account__r.RecordType.Name"/>
                <field id="Activity_Date__c"/>
                <field id="Account__r.Sage_Account_Number__c"/>
                <field id="Account__r.BillingAddress"/>
                <field id="Account__r.BillingCity"/>
                <field id="Account__r.BillingStreet"/>
                <field id="Account__r.BillingPostalCode"/>
                <field id="Account__r.Buying_Group_Affiliation__c"/>
                <field id="Id"/>
                <field id="Activity_Month__c"/>
                <field id="Account__r.of_Orders_within_the_last_90_days__c"/>
                <field id="Account__r.of_Shipments_within_last_90_days__c"/>
                <field id="Account__r.Total_Invoice_amount__c"/>
                <field id="Account__r.Active_Buying_Group_Affiliation__c"/>
                <field id="Account__r.Active_Freight_Record__c"/>
                <field id="Account__r.AnnualRevenue"/>
                <field id="Account__r.Available_Balance__c"/>
                <field id="Account__r.CPA_Type__c"/>
                <field id="Account__r.CPA_Expiring_Date__c"/>
                <field id="Account__r.CPA_Start_Date__c"/>
                <field id="Account__r.CY_AG_Sales_NEW__c"/>
                <field id="Account__r.CY_CX_Sales_NEW__c"/>
                <field id="Account__r.CY_PK_Sales_NEW__c"/>
                <field id="Account__r.CY_Sales_NEW__c"/>
                <field id="Account__r.CY_to_PY_AG__c"/>
                <field id="Account__r.CY_to_PY_CX__c"/>
                <field id="Account__r.PY_Recovered_Sales__c"/>
                <field id="Account__r.PY_AG_Sales_NEW__c"/>
                <field id="Account__r.PY_CX_Sales_NEW__c"/>
                <field id="Account__r.PY_PK_Sales_NEW__c"/>
                <field id="Account__r.PY_Sales_NEW__c"/>
                <field id="Account__r.Id"/>
                <field id="Plan_Start_Date__c"/>
                <field id="AMS_Status__c"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="Planned" enclosevalueinquotes="true" field="AMS_Status__c" state="filterableon" inactive="false" name="AMS_Status__c"/>
                <condition type="multiple" field="AMS_Status__c" operator="in" inactive="true" enclosevalueinquotes="true" name="__autofilter__AMS_Status__c" state="filterableoff" value=""/>
            </conditions>
            <actions/>
        </model>
        <model id="AccountSuccessManagementNote_Planning" limit="100" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Account_Success_Management_Note__c" type="" orderby=" Plan_Start_Date__c ASC">
            <fields>
                <field id="Name"/>
                <field id="CreatedDate"/>
                <field id="Account__c"/>
                <field id="Account__r.Name"/>
                <field id="Purpose_of_Visit__c"/>
                <field id="Created_By_Name__c"/>
                <field id="Created_By_Region__c"/>
                <field id="Current_PK_Usage_Rate_Per_Month__c"/>
                <field id="How_many_PK_units_in_freezer__c"/>
                <field id="Latest_Note__c"/>
                <field id="Were_any_objections_encountered__c"/>
                <field id="What_did_you_present__c"/>
                <field id="Product__c"/>
                <field id="Sage_Account_Number__c"/>
                <field id="Summary_Next_Steps__c"/>
                <field id="What_was_the_outcome__c"/>
                <field id="Who_did_you_see__c"/>
                <field id="Next_Steps__c"/>
                <field id="Account__r.Bill_To_Top20PK__c"/>
                <field id="Account__r.Account_Type2__c"/>
                <field id="Account__r.RecordType.Name"/>
                <field id="Activity_Date__c"/>
                <field id="Account__r.Sage_Account_Number__c"/>
                <field id="Account__r.BillingAddress"/>
                <field id="Account__r.BillingCity"/>
                <field id="Account__r.BillingStreet"/>
                <field id="Account__r.BillingPostalCode"/>
                <field id="Account__r.Buying_Group_Affiliation__c"/>
                <field id="Id"/>
                <field id="Activity_Month__c"/>
                <field id="Account__r.of_Orders_within_the_last_90_days__c"/>
                <field id="Account__r.of_Shipments_within_last_90_days__c"/>
                <field id="Account__r.Total_Invoice_amount__c"/>
                <field id="Account__r.Active_Buying_Group_Affiliation__c"/>
                <field id="Account__r.Active_Freight_Record__c"/>
                <field id="Account__r.AnnualRevenue"/>
                <field id="Account__r.Available_Balance__c"/>
                <field id="Account__r.CPA_Type__c"/>
                <field id="Account__r.CPA_Expiring_Date__c"/>
                <field id="Account__r.CPA_Start_Date__c"/>
                <field id="Account__r.CY_AG_Sales_NEW__c"/>
                <field id="Account__r.CY_CX_Sales_NEW__c"/>
                <field id="Account__r.CY_PK_Sales_NEW__c"/>
                <field id="Account__r.CY_Sales_NEW__c"/>
                <field id="Account__r.CY_to_PY_AG__c"/>
                <field id="Account__r.CY_to_PY_CX__c"/>
                <field id="Account__r.PY_Recovered_Sales__c"/>
                <field id="Account__r.PY_AG_Sales_NEW__c"/>
                <field id="Account__r.PY_CX_Sales_NEW__c"/>
                <field id="Account__r.PY_PK_Sales_NEW__c"/>
                <field id="Account__r.PY_Sales_NEW__c"/>
                <field id="Account__r.Id"/>
                <field id="Plan_Start_Date__c"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Account__r.RecordType.Name" state="filterableoff" inactive="true" name="Account__r.RecordType.Name" operator="="/>
                <condition type="fieldvalue" value="true" enclosevalueinquotes="false" field="Account__r.Bill_To_Top20PK__c" state="filterableoff" inactive="true" name="Account__r.Bill_To_Top20PK__c" operator="="/>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Id" operator="=" state="filterableoff" inactive="true" name="DetailsAMSId"/>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Account__c" fieldtargetobjects="Account" state="filterableoff" inactive="true" name="Account__c" operator="="/>
                <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Account__r.Id" state="filterableoff" inactive="true" name="Account__r.Id"/>
                <condition type="fieldvalue" value="Planned" enclosevalueinquotes="true" field="AMS_Status__c"/>
            </conditions>
            <actions/>
        </model>
        <model id="AccountSuccessManagementNote_Calendar_Completed" limit="100" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Account_Success_Management_Note__c" type="">
            <fields>
                <field id="Name"/>
                <field id="CreatedDate"/>
                <field id="Account__c"/>
                <field id="Account__r.Name"/>
                <field id="Purpose_of_Visit__c"/>
                <field id="Created_By_Name__c"/>
                <field id="Created_By_Region__c"/>
                <field id="Current_PK_Usage_Rate_Per_Month__c"/>
                <field id="How_many_PK_units_in_freezer__c"/>
                <field id="Latest_Note__c"/>
                <field id="Were_any_objections_encountered__c"/>
                <field id="What_did_you_present__c"/>
                <field id="Product__c"/>
                <field id="Sage_Account_Number__c"/>
                <field id="Summary_Next_Steps__c"/>
                <field id="What_was_the_outcome__c"/>
                <field id="Who_did_you_see__c"/>
                <field id="Next_Steps__c"/>
                <field id="Account__r.Bill_To_Top20PK__c"/>
                <field id="Account__r.Account_Type2__c"/>
                <field id="Account__r.RecordType.Name"/>
                <field id="Activity_Date__c"/>
                <field id="Account__r.Sage_Account_Number__c"/>
                <field id="Account__r.BillingAddress"/>
                <field id="Account__r.BillingCity"/>
                <field id="Account__r.BillingStreet"/>
                <field id="Account__r.BillingPostalCode"/>
                <field id="Account__r.Buying_Group_Affiliation__c"/>
                <field id="Id"/>
                <field id="Activity_Month__c"/>
                <field id="Account__r.of_Orders_within_the_last_90_days__c"/>
                <field id="Account__r.of_Shipments_within_last_90_days__c"/>
                <field id="Account__r.Total_Invoice_amount__c"/>
                <field id="Account__r.Active_Buying_Group_Affiliation__c"/>
                <field id="Account__r.Active_Freight_Record__c"/>
                <field id="Account__r.AnnualRevenue"/>
                <field id="Account__r.Available_Balance__c"/>
                <field id="Account__r.CPA_Type__c"/>
                <field id="Account__r.CPA_Expiring_Date__c"/>
                <field id="Account__r.CPA_Start_Date__c"/>
                <field id="Account__r.CY_AG_Sales_NEW__c"/>
                <field id="Account__r.CY_CX_Sales_NEW__c"/>
                <field id="Account__r.CY_PK_Sales_NEW__c"/>
                <field id="Account__r.CY_Sales_NEW__c"/>
                <field id="Account__r.CY_to_PY_AG__c"/>
                <field id="Account__r.CY_to_PY_CX__c"/>
                <field id="Account__r.PY_Recovered_Sales__c"/>
                <field id="Account__r.PY_AG_Sales_NEW__c"/>
                <field id="Account__r.PY_CX_Sales_NEW__c"/>
                <field id="Account__r.PY_PK_Sales_NEW__c"/>
                <field id="Account__r.PY_Sales_NEW__c"/>
                <field id="Account__r.Id"/>
                <field id="Plan_Start_Date__c"/>
                <field id="AMS_Status__c"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="Completed" enclosevalueinquotes="true" field="AMS_Status__c" state="filterableon" inactive="false" name="AMS_Status__c" operator="="/>
                <condition type="fieldvalue" field="AMS_Status__c" operator="=" inactive="true" enclosevalueinquotes="true" name="__autofilter__AMS_Status__c" state="filterableoff" value=""/>
                <condition type="multiple" value="" field="AMS_Status__c" operator="not in" state="filterableoff" inactive="true" name="AMS_Status__c1" enclosevalueinquotes="true">
                    <values>
                        <value>Completed</value>
                        <value>Initialized</value>
                        <value>Planned</value>
                    </values>
                </condition>
            </conditions>
            <actions/>
        </model>
        <model id="AccountSuccessManagementNote_Calendar_Show_Hide" limit="1" query="false" createrowifnonefound="false" datasource="salesforce" sobject="Account_Success_Management_Note__c" type="">
            <fields>
                <field id="Name"/>
                <field id="CreatedDate"/>
                <field id="Account__c"/>
                <field id="Account__r.Name"/>
                <field id="Purpose_of_Visit__c"/>
                <field id="Created_By_Name__c"/>
                <field id="Created_By_Region__c"/>
                <field id="Current_PK_Usage_Rate_Per_Month__c"/>
                <field id="How_many_PK_units_in_freezer__c"/>
                <field id="Latest_Note__c"/>
                <field id="Were_any_objections_encountered__c"/>
                <field id="What_did_you_present__c"/>
                <field id="Product__c"/>
                <field id="Sage_Account_Number__c"/>
                <field id="Summary_Next_Steps__c"/>
                <field id="What_was_the_outcome__c"/>
                <field id="Who_did_you_see__c"/>
                <field id="Next_Steps__c"/>
                <field id="Account__r.Bill_To_Top20PK__c"/>
                <field id="Account__r.Account_Type2__c"/>
                <field id="Account__r.RecordType.Name"/>
                <field id="Activity_Date__c"/>
                <field id="Account__r.Sage_Account_Number__c"/>
                <field id="Account__r.BillingAddress"/>
                <field id="Account__r.BillingCity"/>
                <field id="Account__r.BillingStreet"/>
                <field id="Account__r.BillingPostalCode"/>
                <field id="Account__r.Buying_Group_Affiliation__c"/>
                <field id="Id"/>
                <field id="Activity_Month__c"/>
                <field id="Account__r.of_Orders_within_the_last_90_days__c"/>
                <field id="Account__r.of_Shipments_within_last_90_days__c"/>
                <field id="Account__r.Total_Invoice_amount__c"/>
                <field id="Account__r.Active_Buying_Group_Affiliation__c"/>
                <field id="Account__r.Active_Freight_Record__c"/>
                <field id="Account__r.AnnualRevenue"/>
                <field id="Account__r.Available_Balance__c"/>
                <field id="Account__r.CPA_Type__c"/>
                <field id="Account__r.CPA_Expiring_Date__c"/>
                <field id="Account__r.CPA_Start_Date__c"/>
                <field id="Account__r.CY_AG_Sales_NEW__c"/>
                <field id="Account__r.CY_CX_Sales_NEW__c"/>
                <field id="Account__r.CY_PK_Sales_NEW__c"/>
                <field id="Account__r.CY_Sales_NEW__c"/>
    &n
Photo of Nicholas L.

Nicholas L.

  • 382 Points 250 badge 2x thumb
Thanks Matt. Provided the XML in the above comment.
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Unfortunately, not all of your XML carried over. You'll have to email it to him or create a page that reproduces the error and has significantly less characters to not trigger the limit.
Photo of Nicholas L.

Nicholas L.

  • 382 Points 250 badge 2x thumb
Matt, looks like i hit a character limit. I can either email you or create a stripped down page and re-provide the XML. Whichever you prefer.
Photo of Josef Lagorio

Josef Lagorio

  • 2,874 Points 2k badge 2x thumb
Can you send a screenshot of the of the console with the button element before it is used and after it is used? Similar to my screenshot below. 

Also, try adding !important; to your CSS to see if that keeps the color. 

.purplebuttoncolor {
background-color: #D2B4DE !important;
border-color: #D2B4DE !important;
}
Photo of Nicholas L.

Nicholas L.

  • 382 Points 250 badge 2x thumb
Josef, adding the !important to the CSS seems to have worked! Thank you so much!