Changes

Custom Field Type: Special – MS Word Merge

2,089 bytes removed, 13:55, 20 August 2013
Troubleshooting
Once the MS Word Merge document has been generated as described [[#Generating the Document|above]] the [[user]] can edit the document and/or save it locally if desired. <br>
Selecting the '''Upload Document''' button on the [[SmartDoc for Microsoft Word Overview|SmartDoc]] toolbar in MS Word will cause the document to uploaded to [[SmartSimple]] and attached to the designated field.
 
==Troubleshooting==
'''Issue:'''
* Clicking the button to generate the MS Word Merge causes a browser window or tab entitled ''SmartSimple MS Word Merging'' to open, but does not open (or prompt you to open) the MS Word document.
'''Solution:'''
* Add the following to your list of "Trusted Sites" within your browser:
::<nowiki>http://msword.smartsimple.biz/</nowiki>
'''Cause:'''
* Depending on your browser's security settings when you generate a MS Word Merge document it will either open the document, or prompt you before opening document. If you have disabled the warning messages the browser may simply not open the file without prompting you. Adding the above URL to your trusted site list will allow it to open anyway. Alternately you can reset your browser's security settings.
 
 
'''Issue:'''
* The variable name (i.e. @variable@) is displayed on the MS Word document.
'''Solution:'''
* On the MS Word Merge field in the Values section include ''&lt;!--hideifnotfound-->'' in front of any variables that may not be present to ensure nothing is displayed, rather than the variable name.
'''Cause:'''
* If a variable is not found the ''@variablename@'' is not able to be converted to stored data, so is displayed on the MS Word Merge document exactly as written. This can happen if the associated [[Custom Field]] is on a different [[Template]] or '''Type'''.
 
 
'''Issue:'''
* Using [[sslogic]] within an MS Word Merge custom field results in a missing custom field in the Field List View.
'''Solution:'''
* The following syntax will resolve the issue. You must include an return/enter line at the end, as well as including a duplicate of the variable name immediately following the sslogic condition.
<pre>
<!--@sslogic(',@client.categoryids@,' regexp ',1853,'>'0')-->
companyName=@client.name@;
companyName=@client.name@;
companyAddress=@client.address@;
<!--@end-->
<!--@sslogic(',@client.categoryids@,' regexp ',1853,'<'0')-->
companyName=@client.parent.name@;
companyName=@client.parent.name@;
companyAddress=@client.parent.address@;
<!--@end-->
<newline at the end>
</pre>
==See Also==
8,849
edits