Conditionally Render a Field as Read or Read-Only

Jeff RutterJeff Rutter Member
edited October 2019 in Questions
Hello,

Maybe this has been mentioned before but couldn't find anything on the community, but is it possible to set a specific field's rendering as read or read-only based on the value of another field? Based on a status I'm looking to make a field Read-Only and then when it moves out of that status it should be read (with inline editing again).

Thanks!

Jeff

Comments

  • edited October 2019
    You can put the field on the Skuid layout twice and Mark one read only. Then you can put render conditions on each of the two duplicate fields so that only one of them shows at a time. The render conditions can be based on the value of another field.
  • Jeff RutterJeff Rutter Member
    edited February 2017
    Thanks, Raymond for the help! I just realized I left out that I was curious about routes that used snippets and custom field renderers. This also works, and was just looking for other options and miss a crucial part of my question! Thanks, Jeff
  • Rob HatchRob Hatch Skuad ✭✭
    edited September 2016
    Jeff.  At the field level you conditionally enable a field (more than just rendering). Make it "disabled" for some status values, and "enabled" for others.  I believe this will get what you are after.  
  • edited October 2019
    This is better than mine.... You win this time...
  • Jeff RutterJeff Rutter Member
    edited February 2017
    Thanks for the tip Rob! I hadn't used those options before!
Sign In or Register to comment.