+ Reply to Thread
Results 1 to 3 of 3

Thread: derive_fields for mail_options

  1. #1
    Join Date
    Oct 2004
    Posts
    27

    Default derive_fields for mail_options

    Hello

    I have a form for requesting two different reports (user can only choose one), the relevant field is called 'Report' and the two possible values are ReportA & ReportB

    How can I determine the name of the HTML template used based on the report selected?

    eg
    <input type="hidden" name="mail_options" value="HTMLTemplate=ReportA.htm,KeepLines,TemplateMissing= " />
    OR
    <input type="hidden" name="mail_options" value="HTMLTemplate=ReportB.htm,KeepLines,TemplateMissing= " />

    (I have already created two templates called ReportA.htm and ReportB.htm which work OK if specified individually in mail_options)

    The templates have exactly the same fields in but different styles & information

    I think it's probably a job for derive_fields - I've already used this feature to send the info to different csv files but I just can't figure out the formatting to change mail_options...

    Thanks
    lucy

  2. #2
    Join Date
    Jul 2005
    Posts
    175

    Default Re: derive_fields for mail_options

    ..perhaps you've already read it... if not, maybe it's an approach to your problem (topic called "Conditional Derivation"): http://tectite.com/fmhowto/derived.php

  3. #3
    Join Date
    Oct 2004
    Posts
    27

    Default Re: derive_fields for mail_options

    I did spot the conditional derivation option but I think that's based on whether a given field is empty or not, rather than the contents of the field.

    I'm getting stuck because the HTML template is like a field within a field...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Error "derive_fields specifications are invalid "
    By Mystic_Bovine in forum FormMail Subscription Support
    Replies: 6
    Last Post: 29-Aug-2005, 09:50 PM
  2. derive_fields in multiforms
    By onno in forum FormMail Subscription Support
    Replies: 2
    Last Post: 05-Jul-2005, 08:31 AM
  3. mail_options and template problems
    By middric in forum FormMail Subscription Support
    Replies: 1
    Last Post: 09-Jan-2005, 09:29 PM
  4. recipients field as derive_fields
    By NOgbourne in forum FormMail Subscription Support
    Replies: 5
    Last Post: 09-Dec-2004, 01:34 AM
  5. Help with mail_options and conditions
    By wufpack00 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 06-Jul-2004, 01:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts