View unanswered posts | View active topics It is currently Thu Sep 09, 2010 8:08 am



Post new topic Reply to topic  [ 5 posts ] 
 Merge field not recognized when in formula only 
Author Message

Joined: Fri Jul 23, 2010 4:57 am
Posts: 3
Reply with quote
Post Merge field not recognized when in formula only
The entry screen does NOT list an entry for a merge field when the only place it appears in the document is in a formula. For example this is the only instance of the field DesignControls in the document:

<<If(DesignControls=”Y”)>> text here.<<End()>>

My work around is to place <<DesignControls>> elswhere in the document and then the if statement performs as expected.

My suggestion is to expand the scope of the merge field search to include merge fields that appear only in formulas.


Fri Jul 23, 2010 5:13 am
Report this post
Profile Send private message

Joined: Tue Sep 29, 2009 4:27 am
Posts: 64
Reply with quote
Post Re: Merge field not recognized when in formula only
Hello Ed

Thanks for this.

There is a debate about how to handle this situation. At the moment, it is "by design" that data elements in conditions are not automatically included in the interview. This is because in general, not all data elements are entered in the interview - as some may arrive via one of the <<Include...>> commands. On the other hand, in your case it would have been nice if the DesignControls data element was added to the interview screen automatically.

Your idea of adding the merge field <<DesignControls>> into the template achieves that purpose (i.e. getting it into the interview screen), but has the probably unwanted side effect of having the value of the data element being inserted into the merged document at that point.

You can get a data element included in the interview but not in the merged document using the <<CaptureDataElement(DesignControls)>> command.

Or, you could solve all of the issues, and also give the user a nice way of entering the value, by using some thing like <<ChooseUsingCheckBox(DesignControls,Y,N,N)>>.

Please let us know if this works for you.

_________________
Peter Tuffin


Fri Jul 23, 2010 10:19 am
Report this post
Profile Send private message

Joined: Fri Jul 23, 2010 4:57 am
Posts: 3
Reply with quote
Post Re: Merge field not recognized when in formula only
True enough, after getting some experience I naturally gravitate to using capture function to set the order in wihich users input data.
It was just confusing until I understood.

If a goal is for new xpressdox clients to have an good first experience with conditional statements you'd have to go with an automatic approach.

Otherwise, a mention in the doumentation on the if statement would be helpful.


Thu Jul 29, 2010 4:48 pm
Report this post
Profile Send private message

Joined: Tue Sep 29, 2009 4:27 am
Posts: 64
Reply with quote
Post Re: Merge field not recognized when in formula only
You're right, Ed, at least a discussion in the help on the If command is called for. I will do that ASAP.

_________________
Peter Tuffin


Sat Jul 31, 2010 9:41 am
Report this post
Profile Send private message

Joined: Fri Jul 30, 2010 5:56 am
Posts: 3
Reply with quote
Post Re: Merge field not recognized when in formula only
This is actualy a feature request because the program is behaving as designed.
Another thought as to why you want the system to prompt for fields in if statements: Finding errors in merge field names in large documents. If a field in an formula is misspelled I can not find it easily whereas a merge field misspelled is highlighted as an imput prompt.


Wed Aug 11, 2010 7:22 am
Report this post
Profile Send private message
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You can post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.