set radio or check box based on value from db

How to set checkbox or radio button selection based on database values in ChronoForms.

Overview

The issue is that the standard field settings for checkboxes and radio buttons do not clearly show how to dynamically set their checked or selected state using external data.
For checkboxes, use the "checked" setting with a shortcode that matches the field value. For radio buttons, configure the dynamic selections advanced setting. Alternatively, use the field name with Read Data to populate both control types without modifying these specific settings.

Answered
ChronoForms v7
Ni NickOg 12 Dec, 2020
This has to be a dumb question but I can't find the answer. In most controls there is a [Value & Placeholder] option under advanced settings. There must be some similar way to set the checkbox status based on some incoming value. I just cannot find it. The same applies to radio fields! ?????

Please help!🙄😡

Nick
Max_admin Max_admin 19 Dec, 2020
Answer
Hi Nick,

For Checkbox, there is a "checked" setting, you can write a shortcode inside, it should match the field value to make it checked!

The radios have a dynamic selections advanced setting!

In both cases you can do it with the field name and the Read Data, you do not need to change the settings above, here is how:
http://www.chronoengine.com/forums/posts/t109015/p395390#p395390
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.