since ‎05-04-2015
‎10-12-2019
Lorezt
Level 1
Re: Setting font size for multiple text fields with button Lorezt - Adobe LiveCycle
Oh wow! Okay! I did a little reading and I think I figured it out!Working the way I want it, and it definitely looks less messier.var signaturelines = new Array("RepName", "RepPosition", "RepCompany");for (i = 0; i < signaturelines.length; i++){var currentSize = Signature.resolveNode(signaturelines[i]).font.size;var ptPlace = currentSize.indexOf ( "pt");var currentSizeInt = currentSize.substr ( 0, ptPlace);var newSizeInt = parseInt (currentSizeInt, 10) - 1;// set that as the new font size ( addi...
316
Views
0
Likes
0
Replies
Setting font size for multiple text fields with button Lorezt - Adobe LiveCycle
Hi. I have been on Adobe LiveCycle for awhile but I still have problems in optimizing scripts as I do not have any programming background.I have multiple textfields and I would like to decrease its font size all together with a click of a button.I went through the Adobe Community and found a helpful post and I took the script from it. However, as per the script below, I believe it can be optimized maybe using arrays. However, I have no idea how to go about it.Can anyone help? Your suggestions / ...
483
Views
0
Likes
1
Replies