Reputation: 61
I don't think this is possible using the Xrm. framework but I have to ask. We have labels next to our fields and one we want to bold is the Sub Total. I can't see any way to do this without going through document.getElementById and setting it that way somehow, but from what I read this is completely unsupported. As well, we'd like to set set some fields to take up more exact amount of space than just 25%, 33%, 50%, 66%, 75% and 100%, because some text entry fields are just way too long, like 40 characters wide for something that only needs to be 7.
Upvotes: 0
Views: 3908
Reputation: 1
It works for me with this code below and the parameter 'MYCustomField_c'
:
function BoldLabel(LabelName)
{
document.getElementById(LabelName).style.fontWeight="bold";
}
Upvotes: 0
Reputation: 2507
I don't know a supported way to do that, but to set bold take a look:
document.getElementById("new_name").style.fontWeight="bold";
The space of controls is more complicate, but you can do the same with bold but affect the size of field.
Upvotes: 3