Jump to content

Rule to hide "A" within a number row


dschiller

Recommended Posts

Hi PTI Community,

 

ok here is the story,

 

I have field called barcode where a user uploads a specified list of numbers here is an example "A1234567890123A" these number are printed on to ID cards I need a rule that will hide the "A's" so all that gets printed is "1234567890123".

 

Any suggestions?

Link to comment
Share on other sites

Create a text Rule. The script will look like this:

 

return ReplaceSubstring("A1234567890123A" , "A", "");

 

or field name like so:

 

return ReplaceSubstring( Field("Mydatafield") , "A", "");

 

Use this Rule instead of the field and this should produce the desired result

Link to comment
Share on other sites

Create a text Rule. The script will look like this:

 

return "A" + "1234567890123A" + "A";

 

or field name like so:

 

return "A" + Field("Mydatafield") + "A";

 

Use this Rule instead of the field and this should produce the desired result

 

Thank you very much I know that may seem simple but I really struggled with that

Link to comment
Share on other sites

×
×
  • Create New...