Radio Field Image

Hi Everyone,

Can anyone please help me, Is it possible to display image in radio button as shown in screenshot below:

  Discussion posts and replies are publicly visible

Parents Reply
  • +1
    Certified Senior Developer
    in reply to Rahul009

    Hello  ,

    Radio button does not allow this modification but you can try below code as per your requirement.

    a!localVariables(
      local!selection,
      a!richTextDisplayField(
        value: {
          a!richTextItem(
            text: if(
              toboolean(local!selection) = true(),
              "✅" & "Yes",
              "🔘" & "Yes"
            ),
            link: a!dynamicLink(
              saveInto: a!save(local!selection, true())
            )
          ),
          ", ",
          a!richTextItem(
            text: if(
              toboolean(local!selection) = false(),
              "❌" & "No",
              "🔘" & "No"
            ),
            link: a!dynamicLink(
              saveInto: a!save(local!selection, false())
            )
          ),
          
        }
      )
    )


    Let me know if that works for you.

Children