MikeVM Posted June 27, 2011 Share Posted June 27, 2011 HI, I stuck with what seems to be an easy rule... We creating a template where client can select "predefined" name from drop-down menu or type his/her own in the "custom field" if selected "predefined" value= Custom Name. this is my code which works perfectly off-line (in Acrobat) and does not online - Custom Name returned when this value seklected from drop-down menu instead of value of Field ("custom name"). Any help? if (Field("predefined") == "" return ""; else { if (Field("predefined") == "Custom Name" return Field("custom name"); else return Field("predefined"); } Link to comment Share on other sites More sharing options...
stellasparkles Posted June 27, 2011 Share Posted June 27, 2011 Hello Mike, Try this instead: if (Field("predefined") == "Custom Name" return Field("custom name"); else return Field("predefined"); This should work unless your field called "predefined" is a graphic field... is it? Link to comment Share on other sites More sharing options...
MikeVM Posted June 27, 2011 Author Share Posted June 27, 2011 Hi, no, both fields are text, and no, it's not working... Link to comment Share on other sites More sharing options...
stellasparkles Posted June 27, 2011 Share Posted June 27, 2011 Please forward your Store Name & Product ID# to gfx@printable.com, and we will take a look. Link to comment Share on other sites More sharing options...
Dan Korn Posted June 28, 2011 Share Posted June 28, 2011 Remember that you're not using the same data file when composing under MarcomCentral as when you're composing in FP Desktop. So the data might be slightly different. It could be that MarcomCentral is putting something else other than the plain text in the data field. Or maybe there's an extra space somewhere, in which case the Trim function might help. I would try simply putting the "predefined" field into a text frame and looking at the output to see what it contains. Better yet, return that field from a rule with the "Treat returned strings as tagged text" box UNchecked and place that rule in a text frame to see whatever tagging the field value might also contain. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.