Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Formatting Text

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 25th, 2019, 10:17 AM
bkurzbuch bkurzbuch is offline
Regular Contributor
 
Join Date: May 2014
Posts: 73
Default Trim Field

I have a field called "Access Code" that will always be 5 numbers followed by 3 letters. 12345abc. The customer would like to pull just the last three letters in one spot on there flyer. The trim field code I have is below, but I'm getting a error "no value returned". I can't for the life of me figure out whats wrong with my code. Any help is greatly appreciated.

Code:
Right(Field("access code"),3);
Reply With Quote
  #2  
Old June 25th, 2019, 10:56 AM
dreimer dreimer is online now
Senior Contributor
 
Join Date: Oct 2010
Location: Shakopee, MN
Posts: 466
Default Re: Trim Field

You need to add the return:

return Right(Field("access code"),3);
__________________
Don Reimer - JavaScript Novice

MAC OS 10.12.5 Acrobat XI 11.0.0 FP Creator 10.0.16
Windows 7 Acrobat X 10.1.4 FP Creator 9.3.9
Reply With Quote
  #3  
Old June 25th, 2019, 11:06 AM
bkurzbuch bkurzbuch is offline
Regular Contributor
 
Join Date: May 2014
Posts: 73
Default Re: Trim Field

OMG - That falls under DA. Thank You
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.