the optional: true afFieldInput have the required attribute with it
salmanhasni opened this issue · comments
Salman Hasni commented
example
export const RecruitablePlayerSchema = new SimpleSchema({
ratings: {
type: [Object],
blackbox: true,
optional: true
},
{{> afFieldInput type="text" name="ratings.0.value" id="rating-freeform" }}
then it is rendered as
<input type="text" name="ratings.0.value" id="rating-freeform" required="" data-schema-key="ratings.0.value" class="form-control">
Salman Hasni commented
solved my query with required=false