I want to make a field on skuid layout edit only through a snippet. Can anyone help me?

  • 1
  • Question
  • Updated 1 year ago
  • Answered
  • (Edited)
I have an object called application. In the application object there are two fields 'Status' and 'Purpose'. I want to make the 'Purpose' field to be in edit only mode on skuid layout when my 'Status' field value is 'approved'. Can anyone help me?
Photo of Arnab Mukherjee

Arnab Mukherjee

  • 120 Points 100 badge 2x thumb

Posted 1 year ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
2 options.
  1. Create 2 identical Field Editors. Conditionally render one for when the Status field is set to approved. The other when not. Not ideal since the UX has the field editors get swapped. Pretty sure it'll be somewhat janky looking.
  2. Write a snippet that sets the field mode of Purpose when Status is set to approved or not. Clean UX.
Photo of Bill McCullough

Bill McCullough, Champion

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

Another option is to set the 'Enable' condition on the Purpose field when the Status=Approved.  What's nice is that you can provide a message to the user as to what condition enables the field.

Thanks,

Bill
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Oh yeah!!! Purpose field on the field editor twice.

Conditionally Render based on Status = Approved.
1. When Approved render Edit mode Purpose field
2. When not Approved render Read mode Purpose field