I've been looking through the formly forms documentation, as well as through SO, but I cannot determine if the below is possible. Has anyone encountered a solution?
Issue: How does one configure Formly Form radio button questions to be required?
Background: I have an API that is returning formly form questions to the front end. For example, I might get the below back:

Both of those fields are 'required' in the DB. If I don't key in an answer to 'What's your blog URL?', I get a little 'Field is required!' message. Awesome.
But if I don't fill out that radio button, I get no such message. The form just hangs when I click 'Confirm'.
Any idea how get the 'This form is required!' message with the radio question? Again, these questions are not hard-coded, so it's not as simple as adding an option to the HTML.
Yes, I have tried using required: true. Works great with select, but does not seem to work with radio buttons.Trying this:
formlyConfigProvider.setType([{
name: 'radio',
templateUrl: "radioTemplate.html",
wrapper: ['simpleLabel', 'errorMessage'],
defaultOptions: {
noFormControl: false
},
apiCheck: function apiCheck(check) {
return {
templateOptions: {
required: true,
options: check.arrayOf(check.object),
labelProp: check.string.optional,
valueProp: check.string.optional
}
};
},
controller: ['$scope', 'HelpersService', function($scope, HelpersService) {
if (['Internet Explorer', 'MSIE', 'Unknown', 'Edge'].indexOf(HelpersService.getBrowserName().name) > -1) {
$scope.ieClass = 'ie';
}
}]
}]);
I get the following error:
This led me to believe this is not an option with radio buttons. However, if I'm interpreting this error incorrectly, please let me know! :)
Someone requested a code sample. A lot of code in the codebase is proprietary; however, I have included below the template I use for the questions that come back from the DB. What I'm really curious about is if anyone has encountered this issue before, and if there's a documented config option to get around it, or a very straightforward hack. Otherwise, I'll look into detecting this with a function in the controller.
****Not all questions that come back from the DB will be required!!!
<div ng-if="ctrl.questions">
<form name="ctrl.form" ng-submit="ctrl.submit(ctrl.questions.model)" novalidate>
<formly-form form="ctrl.form" class="input" fields="ctrl.questions" model="ctrl.questions.model" >
<input type="submit" class="btn" id="submit" value="Confirm" />
</formly-form>
</form>
</div>
