Can anyone tell me if it is possible to style some form fields in a custom module to look like the ones attached?
Thanks.
Can anyone tell me if it is possible to style some form fields in a custom module to look like the ones attached?
Thanks.
Add the custom code for your field in editviewdefs.php
'customCode'=>'<div class="input-group">
<span class="input-group-addon">$</span>
<input type="text" class="form-control" id="YOURFIELDNAME" name="YOURFIELDNAME" aria-label="Amount (to the nearest dollar)">
<span class="input-group-addon">.SY</span>
</div>'
Thanks! This works perfectly.
Quick follow up to this. I am trying to add the customCode to the details view so, for example, the budget field would display as “1,000.00 SY”. I have tried with no luck:
'customCode' => '<span class="sugar_field" id="so_budget>{$fields.so_budget.value}</span>
<span class="input-group-addon">SY</span>',
Any thoughts?
I was able to work this out. There was something else causing the issue totally unrelated to the customCode block.