Good Morning!
I am trying to implement Bootstrap Validation.
I have done the following to apply it on a <cms:input>
the above code works perfectly fine.
But when I try yo access the "k_page_title" field, it does not. work.
How can the validation be used on a system variable field?
Regards,
GXCPL (CTR)
I am trying to implement Bootstrap Validation.
I have done the following to apply it on a <cms:input>
- Code: Select all
Editable:
<cms:editable name="full_name" label="Full Name" type="text" required="1" />
Input:
<cms:input name="full_name" id="full_name" type="bound" class="form-control<cms:if k_error_full_name> is-invalid</cms:if>" placeholder="Full Name" />
<label for="full_name">
Full Name <span class="required">*</span>
</label>
<cms:if k_error_full_name>
<p id="full_name_error" class="gxcpl-error gxcpl-body-2" style="display: block;">
<em>Required</em>
</p>
</cms:if>
the above code works perfectly fine.
But when I try yo access the "k_page_title" field, it does not. work.
- Code: Select all
Sample code:
Editable: there is no editable defined. The template is clonable and hence the k_page_title field is available.
Input:
<cms:input name="k_page_title" id="k_page_title" type="bound" class="form-control<cms:if k_error_k_page_title> is-invalid</cms:if>" placeholder="benefit-type" />
<label for="k_page_title">
Benefit Type <span class="required">*</span>
</label>
<cms:if k_error_k_page_title>
<p id="k_page_title_error" class="gxcpl-error gxcpl-body-2" style="display: block;">
<em>Required</em>
</p>
</cms:if>
How can the validation be used on a system variable field?
Regards,
GXCPL (CTR)