#1
|
|||
|
|||
![]()
I have a project where a "Partner Code" is used in 3 places. Two are in body copy and 1 in a URL. Using the "Case selection for a name field Rule" i can get them to print as all caps or lower case where I need them to be. My questions is how do I trim out all spaces. I found how to remove leading and trailing spaces, but I need to remove all spaces incase the end user in Marcom enters it with a space somewhere. Thank You.
|
#2
|
|||
|
|||
![]() |
#3
|
|||
|
|||
![]()
Hi Greg
Thanks for the reply. I tried both of the options in the link you provided, but I can't get it to remove a space in the middle of the variable. I need the variable to look like "ABC123" but I'm getting "ABC 123". Thanks |
#4
|
||||
|
||||
![]()
I bet you're variable is actually returning a non-breaking space character ( ) rather than an actual space. Try this:
Code:
return RawTextFromTagged(Field("Partner Code")).replace(/\s/g, '');
__________________
Ste Pennell FusionPro VDP Creator 9.3.15 Adobe Acrobat X 10.1.1 Mac OS X 10.12 |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|