Length and Read-Only not enforced when overriding field metadata

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

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">
            <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"/>
            <condition type="param" value="id" field="Id" operator="=" enclosevalueinquotes="true" novaluebehavior=""/>
      <pagetitle model="Account" uniqueid="sk-3IeBVh-70">
            <action type="savecancel" window="self"/>
      <basicfieldeditor showsavecancel="false" showheader="true" model="Account" mode="edit" uniqueid="sk-3IeBVh-71" buttonposition="">
            <column width="100%">
                  <section title="Basics" collapsible="no">
                        <field id="Name" valuehalign="" type=""/>
                        <field id="BillingCity"/>
      <styleitem type="background" bgtype="none"/>
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,376 Points 10k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,840 Points 5k badge 2x thumb

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!

Photo of Barry Schnell

Barry Schnell, Champion

  • 18,376 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,846 Points 5k badge 2x thumb

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,376 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!