Hi
How do I edit the label style? Don't like the colon appended to the label and cant figure how to remove it.
Thanks
Remove Colon From the Label
Edit the Form Label
No responses?
OK, will elaborate. Say I want to create a long label, one of those rambling life insurance questions that goes on for lines, eg Have you ever been diagnosed with, or had symptoms of, heart disease, for instance: angina, myocardial infarction, murmur, shortness of breath, et al... ?
This label works best above the yes/no combobox and the question ends with a question mark. Then there's that pesky colon that just doesn't fit. A small thing maybe but I want to zap it.
So I guess the real question is where can I get some control over the label's positioning and it's style?
OK, will elaborate. Say I want to create a long label, one of those rambling life insurance questions that goes on for lines, eg Have you ever been diagnosed with, or had symptoms of, heart disease, for instance: angina, myocardial infarction, murmur, shortness of breath, et al... ?
This label works best above the yes/no combobox and the question ends with a question mark. Then there's that pesky colon that just doesn't fit. A small thing maybe but I want to zap it.
So I guess the real question is where can I get some control over the label's positioning and it's style?
Have done this but solution not really ideal. The label needs to be 'attached' to the combo box because the combo box's visible property is conditional. Depending on the answer to a previous question the combo box might not be visible. And if it is not visible then its label must also not be visible. Achieve this via the READ PROTECT rule. Not sure how to to do this with the HTML solution. Suppose I could try define the HTML cell as an attribute, then attach the 'hide' rule to it. But seems it it would be easier if I could edit the label formatting.
I see what you're saying, thanks Rocketman.
Challenge is that I don't need separators there.
Think for now I will use labels and leave out question marks. They're old school anyway, one can see from the sentence structure that it is a question.
But still feel that more control over labels would be a good thing. Not all labels are two-word wonders. Some can go on for quite a few lines. It would be nice if AwareIM gave us more control over this, eg RTF and don't make punctuation assumptions. And if anyone knows where the code is for that colon I would really appreciate it... thanks.
Challenge is that I don't need separators there.
Think for now I will use labels and leave out question marks. They're old school anyway, one can see from the sentence structure that it is a question.
But still feel that more control over labels would be a good thing. Not all labels are two-word wonders. Some can go on for quite a few lines. It would be nice if AwareIM gave us more control over this, eg RTF and don't make punctuation assumptions. And if anyone knows where the code is for that colon I would really appreciate it... thanks.
To remove the colon from labels:
1. Open C:\AwareIM\Tomcat\webapps\AwareIM\aware_ext\aware.js
2. Find and remove {labelSeparator} (inc. brackets, there should be 2 instances)
3. Find ALL labelSeparator and remove : found at the end ":" (eg..labelSeparator:(config.label==null||config.label.length==0?"":":"),
Cheers
1. Open C:\AwareIM\Tomcat\webapps\AwareIM\aware_ext\aware.js
2. Find and remove {labelSeparator} (inc. brackets, there should be 2 instances)
3. Find ALL labelSeparator and remove : found at the end ":" (eg..labelSeparator:(config.label==null||config.label.length==0?"":":"),
Cheers
Shame. If it wasn't for the fact that the only choices available are Pop Up, right side or bottom, you could use the attribute description to achieve wht you want. If you could live with the text underneath the attribute it would look quite smart.
Rocketman
V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
It's done, many thanks Rennur.
At first could not get it right - aware.js is a mass of code does not seem properly formatted in my editor, and kept crashing the editor. So opened aware_full.js and did deletions in that file. Did not work. Then went back to aware.js and did the job. Lovely. Hope I havn't messed anything by changing aware_full.js. Anyway made notes as I went so should be able to recreate if I need to.
Thanks to all for trying to help, appreciate it.
At first could not get it right - aware.js is a mass of code does not seem properly formatted in my editor, and kept crashing the editor. So opened aware_full.js and did deletions in that file. Did not work. Then went back to aware.js and did the job. Lovely. Hope I havn't messed anything by changing aware_full.js. Anyway made notes as I went so should be able to recreate if I need to.
Thanks to all for trying to help, appreciate it.
-
- Posts: 197
- Joined: Fri Jun 17, 2016 7:10 am
- Location: Brisbane Australia
- Contact:
Re: Remove Colon From the Label
I have an alternative way to remove colons from the end of field labels. Keen to hear any wise critique of this :
Add the following javascript to the Form or Form tab Render script
Add the following javascript to the Form or Form tab Render script
Code: Select all
/* Removes all colons from field labels */
var labelArray=document.getElementsByTagName("label");
for(var i = 0; i < labelArray.length; i++){
labelArray[i].innerHTML=labelArray[i].innerHTML.replace(':','');
}
AWS Linux, Windows Server, AIM 8.4 & 8.6
-
- Posts: 1460
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Remove Colon From the Label
Thanks - will give this a go. I have a number of fields on a BO that are conditionally mandatory but its really hard to put the * in the right place to manually show the required status.UnionSystems wrote:I have an alternative way to remove colons from the end of field labels. Keen to hear any wise critique of this :
Add the following javascript to the Form or Form tab Render script
Code: Select all
/* Removes all colons from field labels */ var labelArray=document.getElementsByTagName("label"); for(var i = 0; i < labelArray.length; i++){ labelArray[i].innerHTML=labelArray[i].innerHTML.replace(':',''); }