UI-Only Field on public facing site

  • 1
  • Question
  • Updated 3 months ago
  • Answered
  • (Edited)
I have a page which is viewable on a site.  When the page loads I write 3 fields of data to a UI-Only fields.  On the public facing site how do I get the fields to show?

On the public facing  https://dorothy.secure.force.com/Profit/?id=a1hf1000000S6BW you will see the 2 fields do not show.

Here are 2 of the merge fields which are not showing but do show when I am signed on to salesforce.


I have the following setting for thesite object 


Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb

Posted 3 months ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Bill,

It looks like your settings for the object didn't come through. First step is to ensure that your site user has read access to your object and the fields.
Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb
They have read access to the object.  
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Do they have read access to the specific fields?
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Also, the UI Only Field must be populated with something. That can be shown in the XML below: (Working in Skuid 11.2.8)

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="false" useviewportmeta="true" showheader="false">
    <models>
        <model id="Acct" limit="20" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Account">
            <fields>
                <field id="RecordTypeId"/>
                <field id="Name"/>
                <field id="UImeThis" uionly="true" displaytype="TEXT" defaultvaluetype="fieldvalue" defaultValue="UIforNow"/>
            </fields>
            <conditions/>
            <actions/>
        </model>
    </models>
    <components>
        <skootable showconditions="true" showsavecancel="true" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" hideheader="false" hidefooter="false" pagesize="10" alwaysresetpagination="false" createrecords="true" model="Acct" buttonposition="" mode="read" allowcolumnreordering="true" responsive="true" uniqueid="sk-1T0k-367">
            <fields>
                <field id="Name" hideable="true" uniqueid="fi-1T0n-390"/>
                <field id="UImeThis" hideable="true" uniqueid="fi-1T0n-391">
                    <label>UI Only Field</label>
                </field>
            </fields>
            <rowactions>
                <action type="edit"/>
                <action type="delete"/>
            </rowactions>
            <massactions usefirstitemasdefault="true">
                <action type="massupdate"/>
                <action type="massdelete"/>
            </massactions>
            <views>
                <view type="standard"/>
            </views>
        </skootable>
        <richtext multiple="false" uniqueid="sk-1T04-306" model="Acct">
            <contents>&lt;p&gt;Hey guys! {{Name}} and {{UImeThis}}&lt;/p&gt;
</contents>
        </richtext>
    </components>
    <resources>
        <labels/>
        <javascript/>
        <css/>
        <actionsequences uniqueid="sk-1S-W-219"/>
    </resources>
    <styles>
        <styleitem type="background" bgtype="none"/>
    </styles>
</skuidpage>
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
If you change the UI Only Field to have something in the Table, you'll see it reflected in the Rich Text
Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb
I found the issue.  UI-Only fields can be used in Sites.
Photo of Eulogio Gallo

Eulogio Gallo

  • 1,874 Points 1k badge 2x thumb
Can you elaborate?