Length and Read-Only not enforced when overriding field metadata

  • 1
  • Problem
  • Updated 2 years ago
  • Acknowledged
  • (Edited)
When 'length' and 'read-only' are overridden in field metadata, neither is enforced in the UI.

Note
1) This occurs whether model is marked to process client side or not. 
2) Read-Only previous identified here https://community.skuidify.com/skuid/topics/override-field-metadata-read-only-not-working.  Mentioning it here as well to "bump" the issue and also since it's likely related to the length not being enforced as well.

Steps to reproduce:
1) Create page using xml below
2) Preview page

Expected Behavior
Billing City is read-only

Actual Behavior 
Billing city is editable

3) Type something longer than 5 characters in to Account Name

Expected Behavior
Input stops at 5 characters

Actual Behvior
INput does not stop

4) Click Save

Expected Behavior
Error message displayed indicating data is invalid because length > 5

Actual Behavior
Records saves successfully, no data truncation, no enforcement of 5 character limit

Sample Page XML

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true" tabtooverride="Account">   <models>
      <model id="Account" limit="" query="true" createrowifnonefound="false" sobject="Account" adapter="" type="" doclone="" processonclient="true">
         <fields>
            <field id="Name" overridemetadata="true" ogdisplaytype="STRING" displaytype="TEXT" length="5" label="" helptext="" readonly="true"/>
            <field id="CreatedDate"/>
            <field id="BillingCity" overridemetadata="true" ogdisplaytype="STRING" displaytype="TEXT" readonly="true"/>
         </fields>
         <conditions>
            <condition type="param" value="id" field="Id" operator="=" enclosevalueinquotes="true" novaluebehavior=""/>
         </conditions>
         <actions/>
      </model>
   </models>
   <components>
      <pagetitle model="Account" uniqueid="sk-3IeBVh-70">
         <maintitle>
            <template>{{Name}}</template>
         </maintitle>
         <subtitle>
            <template>{{Model.label}}</template>
         </subtitle>
         <actions>
            <action type="savecancel" window="self"/>
         </actions>
      </pagetitle>
      <basicfieldeditor showsavecancel="false" showheader="true" model="Account" mode="edit" uniqueid="sk-3IeBVh-71" buttonposition="">
         <columns>
            <column width="100%">
               <sections>
                  <section title="Basics" collapsible="no">
                     <fields>
                        <field id="Name" valuehalign="" type=""/>
                        <field id="BillingCity"/>
                     </fields>
                  </section>
               </sections>
            </column>
         </columns>
      </basicfieldeditor>
   </components>
   <resources>
      <labels/>
      <css/>
      <javascript/>
   </resources>
   <styles>
      <styleitem type="background" bgtype="none"/>
   </styles>
</skuidpage>
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,086 Points 10k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,260 Points 5k badge 2x thumb
Barry~

We have been able to reproduce the problem you are experiencing and have notified the developers of this issue. Thanks for alerting us of this bug and helping make Skuid better!

Thanks!
Karen
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,086 Points 10k badge 2x thumb
Thank you!
Photo of anshulika sharan

anshulika sharan

  • 210 Points 100 badge 2x thumb
Any update on the field length?
Photo of J.

J., Official Rep

  • 7,470 Points 5k badge 2x thumb
Barry,

The read-only part of this has been addressed in Rockaway. No news at this point on enforcing the length, but we'll keep you posted. Thanks!
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,086 Points 10k badge 2x thumb
Thanks for the update J.  While length would be nice (across the board, not just on overridden metadata), read-only part is the critical piece!