ReadOnly Picklist Radio Buttons can still be changed on UI side

Jarrod HinsonJarrod Hinson Member
edited March 2017 in Problems
I am having an issue with my picklist fields that I use as radiobuttons. When the field is in read-only mode they radio buttons can still be toggled/changed on the UI side which doesn't harm anything but the user might think they are editing and cause confusion.

Is there a way to keep these locked so while in readonly mode the user cannot move the selected radio?

image

Comments

  • J.J. Skuad, Sonar 💎
    edited March 2017
    Jarrod,

    This is bug in Skuid. I've already got it fixed in our dev org, and it should go out with our next patch release. Thanks for catching this for us and reporting it here on the community!
  • Jarrod HinsonJarrod Hinson Member
    edited March 2015
    Nice! just curious, is this a CSS thing?
  • J.J. Skuad, Sonar 💎
    edited March 2017
    It's actually a JavaScript issue. It shouldn't be too long before that patch is available, but if you want a workaround in the meantime, try something like the following field renderer snippet on that Picklist field:
    var field = arguments[0],     value = arguments[1];      field.options.type = 'RADIO_BUTTONS'; field.mode = field.mode === 'readonly' ? 'read' : field.mode;  skuid.ui.fieldRenderers.PICKLIST[field.mode](field,value);
    Does that help?
  • Jarrod HinsonJarrod Hinson Member
    edited March 2015
    More than helps! Thank you.
Sign In or Register to comment.