I have been working with the Oracle CPQ tool and am faced with the challenge of creating a checkbox attribute within it.
Upon inspecting the UI, I came across the following:
https://i.sstatic.net/xE5aH.png
Upon examining the browser source code (generated by the CPQ tool), I found the following HTML snippet:
<div class="form-item clearfix null" id="attr_wrapper_1_chkmembershipFeePayment_t" style="display: table;">
<label class="form-label" for="chkmembershipFeePayment_t" style="width: 100px">
<span style="padding-right: 5px;display: table-cell;">Membership Fee</span>
</label>
<div class="form-element field-wrapper" id="field_wrapper_1_chkmembershipFeePayment_t" style="padding-left:100px">
<div class="boolean-wrapper field" message="" style="display: table-cell;">
<div class="boolean-wrapper-inner"><input value="false" class=" form-input cm-attr-value " name="chkmembershipFeePayment_t" onclick="if (this.checked) { this.value='true'; } else { this.value='false'; }" data-is-boolean="true" type="checkbox">
</div>
<input value="true" name="_boolean_present_chkmembershipFeePayment_t" type="hidden">
</div>
<div id="msg_1_chkmembershipFeePayment_t" class="error-hover" data-action-message="" message=""></div>
</div>
::after</div>
I am looking to rearrange the checkbox and the label, specifically placing the checkbox before the 'Membership Fee' label using CSS or JavaScript. However, I am unable to directly alter the HTML due to restrictions within the CPQ tool attribute. Is there a workaround for this?
Following an update by Sagar V