- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
HI,
I have a few textfields in my form with a confined static area and the default font size is set to 11px. However, some users would like to have an option of increasing the font size in these fields. I have looked around for a solution and I understand the there are 2 ways to achieve this: either by using a button to change font size (or) with a drop-down list controlling the font size. I am wanting to do something like this:
1) Add 2 buttons on the form to control its font size. One button will have "+" (to increase the font size) and the other button will be "-" (to decrease the font size) .
2) I understand that if I am defining a fixed font size to increase to, then I can add a javascript something like this:
TextField1.font.size = "12pt";
But I dont want to do like this since in that case, I can only give limited options. Is there a way to write a javascript that can identity the current font size of the textfield and then either adds (or) subtracts 1pt to its font size depending whether the user clicked the "+" or "-" symbol? This way, the user can control and experiment which font size best suites them. Hope this makes sense.. I wonder if someone has an idea on how I can do this...
Solved! Go to Solution.
Views
Replies
Total Likes