Skip to main content

I have a field with input type as ‘checkbox’. Is there way to change input type from checkbox to radio button?

can you elaborate your question please??


ace,


If this is a custom field, I’d recommend changing it to a picklist in Salesforce. Then in your Skuid field editor, you can switch the rendering from picklist to radio button. Make sure to set it to required if you do not want the ‘none’ option added.


If you don’t want to change the field type, then you have 2 choices.



  1. You can stay ‘declarative’ by adding a UI Only picklist to your model. As above add the field to your field editor and set it to required and render as a radio button. You’ll then need to add a button to save your changes. It should be a button that runs multiple actions. Add a branch step and check for ‘true’ on your UI only field, then add 2 actions within the branch: one to update the checkbox field to ‘checked’ and a save action on your model. Following the branch step add an action to update the checkbox field to ‘unchecked’ and a save action on your model.

    !(https://us.v-cdn.net/6032350/uploads/attachments/RackMultipart20170925-96928-1i15vq6-2017-09-25_07_37_24-Edit_Page NewNote_ Salesforce_inline.png “Image https//d2r1vs3d9006apcloudfrontnet/s3_images/1654088/RackMultipart20170925-96928-1i15vq6-2017-09-25_07_37_24-Edit_Page__NewNote___Salesforce_inlinepng1506339550”)




  2. Go with a custom render using a JavaScript snippet. This will simplify your ‘save action’ at the cost of writing a little JavaScript.



Thanks,


Bill