Jump to content

Two page PDF upload rule...


WBG-guy

Recommended Posts

Let me start by apologizing for my inability to figure this issue out on my own. I have a template/postcard that when a customer chooses it they can upload there pdf design as a two pager and it will populate the front and back of the template. I've been told and I've been given a rule to use but I'm having trouble implementing it. I'm told to create a graphic field and use that in the text rule!?

 

I guess I'm not understanding how that rule works in MarcomCentral because when I upload the template and I go to the form/template setup in the form display tab I don't see

 

 

 

Here's the rule that I was given to use on the template.

 

result = "";

 

 

if (Field("FrontUpload") != "")

{

 

var Pic = new FusionProResource(Field("FrontUpload"), "graphic",

"true");

for (Pic.pagenumber = 1; Pic.pagenumber <= Pic.countPages;

Pic.pageNumber++)

if (Pic.pageNumber == Pic.countPages)

{

result += Pic.content;

}

else

{

result += Pic.content+"<p>";

}

}

return result;

 

 

What am I missing in making this work???

Link to comment
Share on other sites

It's a little difficult to say without seeing it in context. If you can email support@pti.com with the store name and Product ID we will take a look, and then update this thread with the findings.

 

Jeff Stehman

Technical Support | PTI Marketing Technologies | Printable Technologies, Inc.

jstehman@pti.com | http://www.pti.com

858.847.6622 direct | 800.220.1727 office

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...