Field Override Metadata not working

  • 1
  • Problem
  • Updated 7 months ago
  • In Progress
I have been using the "override field metadata" properties on several pages to limit picklist values allowed by the user and has been working fine for several months up until now.   Instead of showing the manually added picklist values, it shows all of the fields picklist values.   Happens with multiple sobjects and fields.

Currently using Salesforce Classic/Milau 11.1.8 (upgraded this morning from 11.1.6).   

Thanks,
Ann
Photo of Ann Kukich

Ann Kukich

  • 1,316 Points 1k badge 2x thumb

Posted 7 months ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Ann,

I have 11.1.8 in my developer org.  I tried reproducing what you are seeing.  The override worked for me.

Would you post the XML for your model.  I wanted to see if there are differences.
Thanks,
Bill
Photo of Ann Kukich

Ann Kukich

  • 1,316 Points 1k badge 2x thumb
Hi Bill, below is the xml.   On this page, I am overriding the StageName field on the Opportunity object.  (Line 150 of the xml).

<skuidpage showheader="false" personalizationmode="server" theme="OpportunityDetailFull" showsidebar="false" unsavedchangeswarning="yes" useviewportmeta="true" tabtooverride="" globalfeedbackenabled="false" cachepage="false">
    <models>
        <model id="Opportunity" limit="1" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Opportunity" doclone="" forview="true">
            <fields>
                <field id="RecordTypeId"/>
                <field id="AccountId"/>
                <field id="Account.Name"/>
                <field id="Billing_Contact_if_diff_than_above__c"/>
                <field id="Agency_Contact__c"/>
                <field id="AFF__c"/>
                <field id="Billing_Email_if_different_than_above__c"/>
                <field id="Agency__c"/>
                <field id="Agency__r.Name"/>
                <field id="Agency_Address__c"/>
                <field id="Agency_Con__c"/>
                <field id="Agency_Con__r.Name"/>
                <field id="Amount"/>
                <field id="Artwork__c"/>
                <field id="Artwork_Notes__c"/>
                <field id="Avg_Biz_Size__c"/>
                <field id="Business_Specific_Certificates__c"/>
                <field id="CPM__c"/>
                <field id="CT__c"/>
                <field id="CreatedById"/>
                <field id="CreatedBy.Name"/>
                <field id="CreatedDate"/>
                <field id="Description"/>
                <field id="Email_To__c"/>
                <field id="ExpectedRevenue"/>
                <field id="Key_Finish_Options__c"/>
                <field id="Key_Perforations__c"/>
                <field id="Mail_Date__c"/>
                <field id="Marketing_ID__c"/>
                <field id="Name"/>
                <field id="Number_of_Business__c"/>
                <field id="DMA__c"/>
                <field id="Id"/>
                <field id="Opportunity_Notes__c"/>
                <field id="OwnerId"/>
                <field id="Owner.Name"/>
                <field id="Opp_Contact__c"/>
                <field id="Opp_Contact__r.Name"/>
                <field id="Opp_Contact__r.Email"/>
                <field id="Opp_Contact__r.Phone"/>
                <field id="Address__c"/>
                <field id="Probability"/>
                <field id="Product__c"/>
                <field id="Use_Agency__c"/>
                <field id="Terms_Type__c"/>
                <field id="Stage_Change_Date__c"/>
                <field id="StageNum__c"/>
                <field id="Special_Terms__c"/>
                <field id="Alt_Contact__c"/>
                <field id="Alt_Contact__r.Name"/>
                <field id="Sale_Type__c"/>
                <field id="Account_Type__c"/>
                <field id="Account.BillingCity"/>
                <field id="Account.BillingStreet"/>
                <field id="Account.BillingPostalCode"/>
                <field id="Account.BillingState"/>
                <field id="Account.Id"/>
                <field id="Add_Secondary_Contact__c"/>
                <field id="CloseDate"/>
                <field id="Billing_Email_if_different_than_aboves__c"/>
                <field id="Bill_To__c"/>
                <field id="Invoice_To__c"/>
                <field id="Notes__c"/>
                <field id="Account.Phone"/>
                <field id="Account.Fax"/>
                <field id="Alt_Contact__r.Phone"/>
                <field id="Alt_Contact__r.Email"/>
                <field id="Agency__r.Phone"/>
                <field id="Agency__r.Fax"/>
                <field id="Agency_Con__r.Phone"/>
                <field id="Agency_Con__r.Email"/>
                <field id="Agency__r.Id"/>
                <field id="Circ__c"/>
                <field id="Color_Options__c"/>
                <field id="Finish_Options__c"/>
                <field id="Perforation_Options__c"/>
                <field id="Business_Type__c"/>
                <field id="Renewal_Status__c"/>
                <field id="Renewal_Prior_Sale_Date__c"/>
                <field id="Contract_End_Date__c"/>
                <field id="Contract_Start_Date__c"/>
                <field id="Contract_Notes__c"/>
                <field id="Contract_Term__c"/>
                <field id="Contract_Type__c"/>
                <field id="Font_Letter_Options__c"/>
                <field id="HasRenewalHist__c"/>
                <field id="IsRenewal__c"/>
                <field id="Key_Letter_Notes__c"/>
                <field id="Billing_Contact_if_diff_than_above__r.Email"/>
                <field id="Additional_Notes__c"/>
                <field id="Flat_Fee_Description__c"/>
                <field id="Stages" uionly="true" displaytype="PICKLIST" ogdisplaytype="TEXT" picklistsource="manual" picklistmodel="Opportunity" defaultvaluetype="modelmerge" defaultValue="" mergefield="StageName" model="Opportunity" enclosevalueinquotes="true">
                    <picklistentries>
                        <entry value="Initial Proposal" label="Initial Proposal"/>
                        <entry value="Revised Proposal" label="Revised Proposal"/>
                        <entry value="Contract" label="Contract"/>
                    </picklistentries>
                </field>
                <field id="Store_Specific_Keys__c"/>
                <field id="Certificate_Notes__c"/>
                <field id="Certificates__c" overridemetadata="true" ogdisplaytype="BOOLEAN" displaytype="BOOLEAN" defaultvaluetype="fieldvalue" defaultValue="true"/>
                <field id="Key_Letters__c"/>
                <field id="Posters__c"/>
                <field id="Poster_Description__c"/>
                <field id="Certificate_Specifics__c"/>
                <field id="Poster_Specifics__c"/>
                <field id="RecordType.Name"/>
                <field id="Samples__c"/>
                <field id="Sample_Quantity__c"/>
                <field id="Sample_Weight__c"/>
                <field id="Sampling_Notes__c"/>
                <field id="Agency_Con_Email__c"/>
                <field id="Agency_Phone__c"/>
                <field id="Opp_Secondary_Email__c"/>
                <field id="Opp_Primary_Email__c"/>
                <field id="PCON_PHONE__c"/>
                <field id="CoBranded_Microsite__c"/>
                <field id="Cobranded_Microsite_Notes__c"/>
                <field id="Special_Eblast_Request__c"/>
                <field id="Special_Request_Eblast_Notes__c"/>
                <field id="addBillCon__c"/>
                <field id="Renewal_Sale_Date__c"/>
                <field id="Renewal_Prior_Mail_Date__c"/>
                <field id="Cancel_This_Renewal__c"/>
                <field id="Closed_Lost_Reason__c"/>
                <field id="Stage_Admin__c"/>
                <field id="Quarter__c"/>
                <field id="Campaign_Job__c"/>
                <field id="Campaign_Job__r.Name"/>
                <field id="circdiv" uionly="true" displaytype="FORMULA" label="circdiv" ogdisplaytype="TEXT" readonly="true" returntype="CURRENCY" precision="9" scale="2">
                    <formula>{{Circ__c}}/1000</formula>
                </field>
                <field id="RenewalCreated__c"/>
                <field id="Age__c"/>
                <field id="Owner.IsActive"/>
                <field id="ForecastCategoryName"/>
                <field id="ForecastCategory"/>
                <field id="Report_Name__c"/>
                <field id="Certificate_Size__c"/>
                <field id="Scheduled_Revenue__c"/>
                <field id="Scheduled_Revenue__r.Name"/>
                <field id="Include_Telesales__c"/>
                <field id="Calling_Type__c"/>
                <field id="Telesales_Notes__c"/>
                <field id="Telesales__c"/>
                <field id="StageName" overridemetadata="true" ogdisplaytype="PICKLIST" displaytype="PICKLIST" picklistsource="manual">
                    <picklistentries>
                        <entry value="Initial Proposal" label="Initial Proposal"/>
                        <entry value="Revised Proposal" label="Revised Proposal"/>
                        <entry value="Renewal" label="Renewal"/>
                        <entry value="Contract" label="Contract"/>
                    </picklistentries>
                </field>
            </fields>
            <conditions>
                <condition type="param" value="Id" field="Id" operator="=" enclosevalueinquotes="true" novaluebehavior=""/>
            </conditions>
            <actions>
                <action>
                    <actions>
                        <action type="branch" model="Opportunity">
                            <formula>{{Add_Secondary_Contact__c}}!==true</formula>
                            <iftrueactions>
                                <action type="custom" snippet="SecConNull"/>
                            </iftrueactions>
                        </action>
                    </actions>
                    <events>
                        <event>row.updated</event>
                    </events>
                    <fields>
                        <field>Add_Secondary_Contact__c</field>
                    </fields>
                </action>
                <action>
                    <actions>
                        <action type="branch" model="Opportunity">
                            <formula>{{Use_Agency__c}}!==true</formula>
                            <iftrueactions>
                                <action type="custom" snippet="AgencyNull"/>
                            </iftrueactions>
                        </action>
                    </actions>
                    <events>
                        <event>row.updated</event>
                    </events>
                    <fields>
                        <field>Use_Agency__c</field>
                    </fields>
                </action>
                <action>
                    <actions>
                        <action type="branch" model="Opportunity">
                            <iftrueactions>
                                <action type="custom" snippet="AgencyContactNull"/>
                            </iftrueactions>
                            <formula>{{Use_Agency__c}}!==false</formula>
                        </action>
                    </actions>
                    <events>
                        <event>row.updated</event>
                    </events>
                    <fields>
                        <field>Use_Agency__c</field>
                    </fields>
                </action>
                <action>
                    <actions>
                        <action type="branch" model="Opportunity">
                            <formula>{{Sale_Type__c}}=='Certificate'</formula>
                            <iftrueactions>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Certificates__c" enclosevalueinquotes="false" value="true"/>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Key_Letters__c" enclosevalueinquotes="false" value="true"/>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Samples__c" enclosevalueinquotes="false" value="false"/>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Posters__c" enclosevalueinquotes="false" value="false"/>
                            </iftrueactions>
                        </action>
                        <action type="branch" model="Opportunity">
                            <formula>{{Sale_Type__c}}=='OnDemand'</formula>
                            <iftrueactions>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Certificates__c" enclosevalueinquotes="false" value="true"/>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Key_Letters__c" enclosevalueinquotes="false" value="true"/>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Samples__c" enclosevalueinquotes="false" value="false"/>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Posters__c" enclosevalueinquotes="false" value="false"/>
                            </iftrueactions>
                        </action>
                        <action type="branch" model="Opportunity">
                            <formula>{{Sale_Type__c}}=='Sampling'</formula>
                            <iftrueactions>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Key_Letters__c" enclosevalueinquotes="false" value="true"/>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Certificates__c" enclosevalueinquotes="false" value="false"/>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Posters__c" enclosevalueinquotes="false" value="false"/>
                                <action type="updateRow" fieldmodel="Opportunity" affectedrows="context" field="Samples__c" enclosevalueinquotes="false" value="true"/>
                            </iftrueactions>
                        </action>
                    </actions>
                    <events>
                        <event>row.updated</event>
                    </events>
                    <fields>
                        <field>Sale_Type__c</field>
                    </fields>
                </action>
                <action>
                    <actions>
                        <action type="branch" model="Opportunity">
                            <formula>{{addBillCon__c}}!==true</formula>
                            <iftrueactions>
                                <action type="custom" snippet="AddBillConNull"/>
                            </iftrueactions>
                        </action>
                    </actions>
                    <events>
                        <event>row.updated</event>
                    </events>
                    <fields>
                        <field>Billing_Contact_if_diff_than_above__c</field>
                        <field>addBillCon__c</field>
                    </fields>
                </action>
                <action>
                    <actions>
                        <action type="setCondition" model="Campaigns" condition="Opportunity_Name__c" value="{{$Model.Opportunity.data.0.Id}}"/>
                        <action type="requeryModel" model="Campaigns" behavior="standard"/>
                        <action type="updateRow" fieldmodel="Campaigns" affectedrows="context" field="Contract_Amount__c" enclosevalueinquotes="false" value="{{$Model.Opportunity.data.Amount}}"/>
                        <action type="save">
                            <models>
                                <model>Campaigns</model>
                            </models>
                        </action>
                    </actions>
                    <events>
                        <event>models.saved</event>
                    </events>
                </action>
            </actions>
        </model>
        <model id="Tasks" type="" datasource="salesforce" limit="25" query="false" createrowifnonefound="false" sobject="Task" doclone="" unloadwarningifunsavedchanges="false" processonclient="false" queryallrows="true">
            <fields>
                <field id="Id"/>
                <field id="OwnerId"/>
                <field id="Owner.Name"/>
                <field id="Owner.LastName"/>
                <field id="CreatedById"/>
                <field id="CreatedBy.Name"/>
                <field id="CreatedBy.LastName"/>
                <field id="Description"/>
                <field id="CreatedDate"/>
                <field id="Completed_Date__c"/>
                <field id="ActivityDate"/>
                <field id="IsHighPriority"/>
                <field id="Priority"/>
                <field id="What.Id"/>
                <field id="What.Name"/>
                <field id="Type"/>
                <field id="TaskSubtype"/>
                <field id="Subject" overridemetadata="true" ogdisplaytype="COMBOBOX" displaytype="TEXT" picklistsource="manual" length="50"/>
                <field id="Status"/>
                <field id="WhoId"/>
                <field id="Who.Name"/>
                <field id="WhatId"/>
                <field id="AccountId"/>
                <field id="Account.Name"/>
                <field id="Who.Id"/>
                <field id="IsArchived"/>
                <field id="RecordTypeId"/>
                <field id="RecordType.Name"/>
                <field id="RecordType.Id"/>
                <field id="Category__c"/>
                <field id="Notes__c"/>
                <field id="Subject_Text__c"/>
                <field id="IsReminderSet"/>
                <field id="ReminderDateTime"/>
                <field id="Meeting_Date__c"/>
                <field id="Meeting_Type__c"/>
            </fields>
            <conditions logic="">
                <condition type="param" value="Id" field="WhatId" operator="=" fieldtargetobjects="APXTConga4__Composer_QuickMerge__c,APXTConga4__Conga_Email_Staging__c,APXTConga4__Conga_Email_Template__c,APXT_CMQM__QuickMerge_Link__c,Account,Asset,AssetRelationship,Campaign,Case,Contract,Courier1__Courier_Schedule__c,Eblast_Members__c,Eblasts__c,Flywheel__c,IHIT_Products__c,Inactive_Contact__c,Jobs__c,Lead_Gen_History__c,Lead_Gen_New__c,Lead_Gen__c,Lists__c,MC4SF__MC_Subscriber__c,OldIHIT__c,Opportunity,Ops_Home__c,Order,Owner_Data__c,PMTR__PM_RuleItem__c,PMTR__PM_Rule__c,PONumbers__c,Pardot_History__c,Pricing__c,Product2,Program__c,Prospecting__c,Purchase_Orders__c,Quote,Research_New__c,Solution,Timeline__c,Vendors__c,WPI__c,WorkOrder,WorkOrderLineItem,bofc__BOFCErrorLogs__c,rh2__PS_Export_Rollups__c,rh2__PS_Rollup_Dummy__c" novaluebehavior="deactivate" state="" mergefield="Id" enclosevalueinquotes="true"/>
            </conditions>
            <actions/>
        </model>
        <model id="Attachments" type="" datasource="salesforce" limit="10" query="true" createrowifnonefound="false" sobject="Attachment" doclone="" unloadwarningifunsavedchanges="false" processonclient="false">
            <fields>
                <field id="Id"/>
                <field id="ContentType"/>
                <field id="CreatedDate"/>
                <field id="CreatedBy.LastName"/>
                <field id="CreatedById"/>
                <field id="CreatedBy.Name"/>
                <field id="Description"/>
                <field id="Name"/>
                <field id="Parent.Id"/>
                <field id="Parent.Name"/>
                <field id="Parent.Type"/>
                <field id="ParentId"/>
            </fields>
            <conditions>
                <condition type="param" value="Id" field="ParentId" operator="=" mergefield="Id" fieldtargetobjects="APXTConga4__Composer_QuickMerge__c,APXTConga4__Conga_Email_Staging__c,APXTConga4__Conga_Email_Template__c,APXTConga4__Conga_Merge_Query__c,APXTConga4__Conga_Solution_Email_Template__c,APXTConga4__Conga_Solution_Parameter__c,APXTConga4__Conga_Solution_Query__c,APXTConga4__Conga_Solution_Report__c,APXTConga4__Conga_Solution_Template__c,APXTConga4__Conga_Solution__c,APXTConga4__Conga_Template__c,APXT_CMQM__QuickMerge_Link__c,Account,Asset,CC_LockIt__LockIt__c,Campaign,Case,Contact,ContoAcount__c,Contract,Courier1__Courier_Schedule__c,Courier1__Recipient__c,EmailMessage,EmailTemplate,Event,Field_Trip__Field_Analysis__c,Field_Trip__Object_Analysis__c,Flywheel__c,Graphics_Pack_Example__c,IHIT_Products__c,Inactive_Contact__c,Jobs__c,JourneyMembers__c,LH__Lookup_Helper_Error__c,LH__Lookup_Helper_Filter_Group__c,LH__Lookup_Helper_Filter__c,LH__Lookup_Helper_Record_Creation__c,LH__Lookup_Helper_Setting_Filter_Association__c,LH__Lookup_Helper_Setting__c,Lead,Lead_Gen__c,OldIHIT__c,Operations_Team__c,Opportunity,Ops_Home__c,Order,Owner_Data__c,PMTR__PM_RuleItem__c,PMTR__PM_Rule__c,PONumbers__c,Pardot_History__c,Pricing__c,Product2,Program__c,Purchase_Orders__c,Quote,SocialPost,Solution,Task,Task_Manager__c,Timeline__c,Vendors__c,WPI__c,WTA__Web_To_Any_Exception__c,WorkOrder,WorkOrderLineItem,bat__Activity_view__c,bat__Activity_view_query__c,dsfs__DocuSignAccountConfiguration__c,dsfs__DocuSign_Envelope_Document__c,dsfs__DocuSign_Envelope_Recipient__c,dsfs__DocuSign_Envelope__c,dsfs__DocuSign_Recipient_Status__c,dsfs__DocuSign_Status__c,pi__AsyncRequest__c,pi__Category_Contact_Score__c,pi__Category_Lead_Score__c,pi__EngageCampaignRecipient__c,pi__LDFilter__c,pi__ObjectChangeLog__c,pi__PardotTask__c,pi__Pardot_Scoring_Category__c,rh2__Filter__c,rh2__PS_Describe__c,rh2__PS_Exception__c,rh2__PS_Export_Rollups__c,rh2__PS_Queue__c,rh2__PS_Rollup_Conditions__c,rh2__PS_Rollup_Dummy__c,rh2__RH_Job__c,sharem__SmDocumentFolder__c,sharem__SmDocumentTag__c,sharem__SmDocument__c,sharem__SmFolderTag__c,sharem__SmFolder__c,sharem__SmTag__c,sharem__SmUser__c,skuid__Image__c,skuid__Page_Assignment__c,skuid__Page_Interaction__c,skuid__Page_Version__c,skuid__Page__c,skuid__Personalization_Settings__c" novaluebehavior="deactivate" enclosevalueinquotes="true"/>
            </conditions>
            <actions/>
        </model>
        <model id="User" datasource="salesforce" limit="20" query="true" createrowifnonefound="false" sobject="User" doclone="" unloadwarningifunsavedchanges="false" processonclient="false">
            <fields>
                <field id="LastName"/>
                <field id="Name"/>
            </fields>
            <conditions>
                <condition type="userinfo" value="" enclosevalueinquotes="true" field="Id" operator="=" userinfotype="userid"/>
            </conditions>
            <actions/>
        </model>
        <model id="Notes" type="" datasource="salesforce" limit="20" query="false" createrowifnonefound="false" sobject="Note" processonclient="false" doclone="">
            <fields>
                <field id="Body"/>
                <field id="CreatedDate"/>
                <field id="Owner.Name"/>
                <field id="Title"/>
                <field id="CreatedBy.Name"/>
                <field id="ParentId"/>
                <field id="Parent.Name"/>
                <field id="Id"/>
            </fields>
            <conditions>
                <condition type="param" value="Id" enclosevalueinquotes="true" field="ParentId" operator="=" fieldtargetobjects="APXTConga4__Composer_QuickMerge__c,APXTConga4__Conga_Email_Staging__c,APXTConga4__Conga_Email_Template__c,APXTConga4__Conga_Merge_Query__c,APXTConga4__Conga_Solution_Email_Template__c,APXTConga4__Conga_Solution_Parameter__c,APXTConga4__Conga_Solution_Query__c,APXTConga4__Conga_Solution_Report__c,APXTConga4__Conga_Solution_Template__c,APXTConga4__Conga_Solution__c,APXTConga4__Conga_Template__c,APXT_CMQM__QuickMerge_Link__c,Account,Asset,CC_LockIt__LockIt__c,Contact,Contract,Courier1__Courier_Schedule__c,Courier1__Recipient__c,Field_Trip__Field_Analysis__c,Field_Trip__Object_Analysis__c,Graphics_Pack_Example__c,IHIT_Products__c,Inactive_Contact__c,Jobs__c,LH__Lookup_Helper_Error__c,LH__Lookup_Helper_Filter_Group__c,LH__Lookup_Helper_Filter__c,LH__Lookup_Helper_Record_Creation__c,LH__Lookup_Helper_Setting_Filter_Association__c,LH__Lookup_Helper_Setting__c,Lead,Lead_Gen__c,ListRemoves__c,List_Members__c,Lists__c,OldIHIT__c,Opportunity,Ops_Home__c,Order,Owner_Data__c,PMTR__PM_RuleItem__c,PMTR__PM_Rule__c,PONumbers__c,Pardot_History__c,Pricing__c,Product2,Program__c,Purchase_Orders__c,Quote,SocialPost,Task_Manager__c,Timeline__c,UpdParentAc__c,Vendors__c,WPI__c,WTA__Web_To_Any_Exception__c,WorkOrder,WorkOrderLineItem,bat__Activity_view__c,bat__Activity_view_query__c,dsfs__DocuSignAccountConfiguration__c,dsfs__DocuSign_Envelope_Document__c,dsfs__DocuSign_Envelope_Recipient__c,dsfs__DocuSign_Envelope__c,dsfs__DocuSign_Recipient_Status__c,dsfs__DocuSign_Status__c,pi__AsyncRequest__c,pi__Category_Contact_Score__c,pi__Category_Lead_Score__c,pi__EngageCampaignRecipient__c,pi__LDFilter__c,pi__ObjectChangeLog__c,pi__PardotTask__c,pi__Pardot_Scoring_Category__c,rh2__Filter__c,rh2__PS_Describe__c,rh2__PS_Exception__c,rh2__PS_Export_Rollups__c,rh2__PS_Queue__c,rh2__PS_Rollup_Conditions__c,rh2__PS_Rollup_Dummy__c,rh2__RH_Job__c,sharem__SmDocumentFolder__c,sharem__SmDocumentTag__c,sharem__SmDocument__c,sharem__SmFolderTag__c,sharem__SmFolder__c,sharem__SmTag__c,sharem__SmUser__c,skuid__Image__c,skuid__Page_Assignment__c,skuid__Page_Interaction__c,skuid__Page_Version__c,skuid__Page__c,skuid__Personalization_Settings__c" novaluebehavior=""/>
            </conditions>
            <actions/>
        </model>
        <model id="NewNote" type="" datasource="salesforce" limit="" query="false" createrowifnonefound="false" sobject="Note" doclone="" processonclient="false">
            <fields>
                <field id="Body"/>
                <field id="CreatedDate"/>
                <field id="CreatedById"/>
                <field id="CreatedBy.Name"/>
                <field id="Id"/>
                <field id="ParentId"/>
                <field id="Title"/>
            </fields>
            <conditions/>
            <actions/>
        </model>
        <model id="NewTask" datasource="salesforce" limit="" query="false" createrowifnonefound="false" sobject="Task" doclone="" processonclient="false">
            <fields>
                <field id="Id"/>
                <field id="OwnerId"/>
                <field id="Owner.Name"/>
                <field id="Owner.LastName"/>
                <field id="CreatedById"/>
                <field id="CreatedBy.Name"/>
                <field id="CreatedBy.LastName"/>
                <field id="Description"/>
                <field id="CreatedDate"/>
                <field id="Completed_Date__c"/>
                <field id="ActivityDate"/>
                <field id="IsHighPriority"/>
                <field id="Priority"/>
                <field id="What.Id"/>
                <field id="What.Name"/>
                <field id="Type"/>
                <field id="TaskSubtype"/>
                <field id="Subject" overridemetadata="true" ogdisplaytype="COMBOBOX" displaytype="TEXT" picklistsource="manual" length="50"/>
                <field id="Status"/>
                <field id="WhoId"/>
                <field id="Who.Name"/>
                <field id="WhatId"/>
                <field id="What.Type"/>
                <field id="Category__c"/>
                <field id="IsReminderSet"/>
                <field id="ReminderDateTime"/>
                <field id="Subject_Text__c"/>
                <field id="Notes__c"/>
                <field id="AccountId"/>
                <field id="Account.Name"/>
                <field id="Meeting_Date__c"/>
                <field id="Meeting_Type__c"/>
            </fields>
            <conditions>
                <condition type="userinfo" value="" enclosevalueinquotes="true" field="OwnerId" operator="=" fieldtargetobjects="User" userinfotype="userid"/>
            </conditions>
            <actions>
                <action>
                    <actions>
                        <action type="branch" model="NewTask">
                            <formula>{{Category__c}}=='Scheduled Task'</formula>
                            <iftrueactions>
                                <action type="updateRow" fieldmodel="NewTask" affectedrows="context" field="Status" enclosevalueinquotes="true" value="In Progress"/>
                            </iftrueactions>
                        </action>
                        <action type="branch">
                            <formula>{{Category__c}}=='Prospecting Activity'</formula>
                            <iftrueactions>
                                <action type="updateRow" fieldmodel="NewTask" affectedrows="context" field="Status" enclosevalueinquotes="true" value="Completed"/>
                                <action type="updateRow" fieldmodel="NewTask" affectedrows="context" field="Completed_Date__c" enclosevalueinquotes="false" value="TODAY"/>
                            </iftrueactions>
                        </action>
                    </actions>
                    <events>
                        <event>row.updated</event>
                    </events>
                    <fields>
                        <field>Category__c</field>
                    </fields>
                </action>
            </actions>
        </model>
        <model id="UIOnly" datasource="Ui-Only" query="true" createrowifnonefound="true" processonclient="true" unloadwarningifunsavedchanges="false">
            <fields>
                <field id="sidebar" displaytype="BOOLEAN" ogdisplaytype="TEXT" defaultvaluetype="fieldvalue" defaultValue="true" label="sidebar"/>
                <field id="AccShow" displaytype="BOOLEAN" ogdisplaytype="TEXT" defaultvaluetype="fieldvalue" defaultValue="true" label="accshow"/>
                <field id="AddBillCon" displaytype="BOOLEAN" label="Add Additional Billing Contact:" ogdisplaytype="TEXT"/>
            </fields>
            <conditions/>
            <actions/>
        </model>
        <model id="RecItems" limit="8" query="true" createrowifnonefound="false" datasource="salesforce" sobject="RecentlyViewed" doclone="" unloadwarningifunsavedchanges="false" orderby="LastViewedDate DESC" processonclient="false">
            <fields>
                <field id="Alias"/>
                <field id="Email"/>
                <field id="FirstName"/>
                <field id="Name" overridemetadata="true" ogdisplaytype="STRING" displaytype="TEXT" length="20"/>
                <field id="LastViewedDate"/>
                <field id="LastReferencedDate"/>
                <field id="Id"/>
                <field id="Title"/>
                <field id="Type"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="LAST_N_DAYS:1" enclosevalueinquotes="false" field="LastViewedDate" operator="="/>
            </conditions>
            <actions/>
        </model>
        <model id="CurUser" limit="1" query="true" createrowifnonefound="false" datasource="salesforce" sobject="User" doclone="" unloadwarningifunsavedchanges="false">
            <fields>
                <field id="Name"/>
                <field id="Username"/>
                <field id="Id"/>
            </fields>
            <conditions>
                <condition type="userinfo" value="" field="Id" operator="=" enclosevalueinquotes="true" userinfotype="userid" state="" inactive="false"/>
            </conditions>
            <actions/>
        </model>
        <model id="Campaigns" limit="2" query="false" createrowifnonefound="false" datasource="salesforce" sobject="Jobs__c">
            <fields>
                <field id="RecordTypeId"/>
                <field id="Account__c"/>
                <field id="Account__r.Name"/>
                <field id="Name"/>
                <field id="Contract_Number__c"/>
                <field id="Contract_Job_Type__c"/>
                <field id="Contract_Amount__c"/>
                <field id="Contract_End_Date__c"/>
                <field id="Contract_Signed_Date__c"/>
                <field id="Contract_Start_Date__c"/>
                <field id="Contract_Sale_Type__c"/>
                <field id="Opportunity_Name__c"/>
                <field id="Opportunity_Name__r.Name"/>
                <field id="Opportunity_Name__r.Id"/>
                <field id="Account__r.Id"/>
                <field id="Job_ID__c"/>
                <field id="OwnerId"/>
                <field id="Owner.Name"/>
                <field id="Sale_Types__c"/>
            </fields>
            <conditions>
                <condition type="param" value="Id" field="Opportunity_Name__c" operator="=" fieldtargetobjects="Opportunity" mergefield="Id" novaluebehavior="deactivate" userinfotype="userid" enclosevalueinquotes="true" state="filterableoff" inactive="true" name="Opportunity_Name__c"/>
            </conditions>
            <actions>
                <action>
                    <actions>
                        <action type="custom" model="Opportunity" behavior="loadmore" snippet="reload"/>
                    </actions>
                    <events>
                        <event>models.saved</event>
                    </events>
                </action>
            </actions>
        </model>
        <model id="OppStageUpd" limit="1" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Opportunity" doclone="" forview="false" unloadwarningifunsavedchanges="false">
            <fields>
                <field id="RecordTypeId"/>
                <field id="AccountId"/>
                <field id="Account.Name"/>
                <field id="Billing_Contact_if_diff_than_above__c"/>
                <field id="Agency_Contact__c"/>
                <field id="AFF__c"/>
                <field id="Billing_Email_if_different_than_above__c"/>
                <field id="Agency__c"/>
                <field id="Agency__r.Name"/>
                <field id="Agency_Address__c"/>
                <field id="Agency_Con__c"/>
                <field id="Agency_Con__r.Name"/>
                <field id="Amount"/>
                <field id="Artwork__c"/>
                <field id="Artwork_Notes__c"/>
                <field id="Avg_Biz_Size__c"/>
                <field id="Business_Specific_Certificates__c"/>
                <field id="CPM__c"/>
                <field id="Marketing_ID__c"/>
                <field id="Name"/>
                <field id="Number_of_Business__c"/>
                <field id="DMA__c"/>
                <field id="Id"/>
                <field id="Opportunity_Notes__c"/>
                <field id="OwnerId"/>
                <field id="Owner.Name"/>
                <field id="Opp_Contact__c"/>
                <field id="Opp_Contact__r.Name"/>
                <field id="Opp_Contact__r.Email"/>
                <field id="Opp_Contact__r.Phone"/>
                <field id="Address__c"/>
                <field id="Probability"/>
                <field id="Product__c"/>
                <field id="Use_Agency__c"/>
                <field id="Terms_Type__c"/>
                <field id="Stage_Change_Date__c"/>
                <field id="StageNum__c"/>
      &nbsp
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Ann,

Thanks for posting the model xml.  I updated my StageName field with the xml from your model.  I am seeing the overridden pick list values.

Are you using record types with your Opportunities?

Thanks,

Bill
Photo of Ann Kukich

Ann Kukich

  • 1,316 Points 1k badge 2x thumb
Yes, we are using 2 record types.   Each record type has a completely different sales process and is rarely used.   I checked the record type assignments in salesforce and all is good there.    There are 2 skuid pages which are assigned by record type though.   The PO record type uses Salesforce Classic page, the x2018 uses Skuid page

This is also happening on the Task object where I have the Type field picklists

Photo of Ann Kukich

Ann Kukich

  • 1,316 Points 1k badge 2x thumb
Hey Bill,  I created a new test page with just  the Opportunity model and stage field.  The metadata override works here.   I am thinking it has to be something on the existing pages?
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Ann,

I agree.  It is definitely something on the page.  Just confirming....you don't have a custom render on the StageName field?

You might try removing the field from the field editor, saving the page, then re-adding the field.  See if that gets things working.

Thanks,

Bill
Photo of Ann Kukich

Ann Kukich

  • 1,316 Points 1k badge 2x thumb
I tried removing the field, the field editor, adding a new model etc etc...   Still not much change.   I cloned the page and removed all custom css, snippets, models until I was down to just the Opportunity table and still same.   It is appearing that if I dont load any data (it's a detail page), it works.  But when I load an Id, it fails.

I have also removed any custom rendering on the Stage field, but will check for more.   I did notice that something has changed with the RecordType fields recently.  Just seems strange that it is happening on more than one model/object/field.

I will let you know how this works out, I may just build up some UI picklist fields and update the model fields to get it going

Thanks Bill!
Photo of Ann Kukich

Ann Kukich

  • 1,316 Points 1k badge 2x thumb
I have identified the problem causing the metadata override to fail.  The manual picklist entries are not respected If I have another picklist field on the page.  The picklist fields can be displayed in the model, but once I add another model picklist to the UI in a field editor, the metadata override is not respected at all.   

I went through all of our Salesforce settings including Sales Processes, Record Types, Permissions and all looks good, so I am puzzled on why this is happening.  In my case, it involves the Stage field on the Opportunity, and the Type field on the Task Object.  Noting that this worked fine for several months, until recently.   I noticed the change yesterday, and although I did upgrade to Milau 11.1.8 that morning, not sure if the problem actually started before or after the upgrade.  I just happened to be working in the user interface and noticed it.

This sounds like a bigger problem than I can find the answer too,  or may be a limitation, but I have found a workaround for now,  I changed the field display type of the metadata override fields to ComboBox, and the manual picklist entries work as expected.  I only have one pickllst metadata override per page, so I am not sure if this would work on more than one.  
 
Thanks,
Ann
(Edited)
Photo of Ann Kukich

Ann Kukich

  • 1,316 Points 1k badge 2x thumb
Hi Bill, 

I created the page with your xml.  The standard StageName picklist is still not respecting the manual entries.  I had to remove both the UI Picklist and the "2nd picklist" and then it worked.

Thanks!
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Ann,

Thanks for doing that.  It helps to pinpoint the problem.

I think this is one for the Skuid team to look at.  It appears to be something in the way that your 'org' is setup or maybe something with Skuid (like the update didn't complete as expected).  This page worked for me in my developer org.

Thanks,

Bill
Photo of Ann Kukich

Ann Kukich

  • 1,316 Points 1k badge 2x thumb
Ok, thanks Bill.   Also, I am now getting this error on pages with overiden picklists:

Cannot render field editor....Cannot read property 'replace' of undefined
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Ann,

Do you have a custom render on this page?  That error sounds like something related to a custom render.

Thanks,

Bill
Photo of Ann Kukich

Ann Kukich

  • 1,316 Points 1k badge 2x thumb
Bill,

Yes, there are custom renders on this page,  but the problem is occurring on other pages without custom rendering, and on new pages without any customization at all.

I am thinking this is a Salesforce setting in our org, just not sure which one.   We don't have any "dependent" fields/picklists set up, which is the first place I looked along with Sales Process, Record Types etc.   So far I haven't uncovered anything.

On the bright side, the ComboBox workaround is working well, and havent had any issues since.

Thanks
Ann