Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Combo Box and ShortName_Text
Last Post 04-20-2010 02:42 PM by Candace. 8 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Theo StoneUser is Offline
new to the springs
new to the springs
Posts:3
Avatar

--
03-03-2009 08:12 AM

    DNN = 4.9, DF = 2.7.5.

    I have a 'contact' form with a combo box.  that is populated via sql, and all items show when 'test sql' is clicked.  I have an email event on form submit that sends the form to the value of the combo box which does work correctly.  The issue is with the shortName_Text property.  It does not work in the subject field.  It works fine if used in the body portion of the email.  Is there a different way or something to get the value into the subject line?

    Thanks

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    03-03-2009 08:19 AM
    HI Theo
    In the subject line, make sure to include something letters in front of the $(shortName_Text) field, for example:
    Subject: Concerning $(shortName_Text)
    You just don't want to have the fieldname by itself without any leading characters.
    -- David
    Theo StoneUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    03-03-2009 09:06 AM
    Thanks for the quick reply, David.
    I am still having the same issue. I added some text before the $(ShortName_Text) but it returned the same value. My combo box short name is Topic. So i add $(Topic_Text) and this literal value is what is sent in the email subject line. i.e., I set the subject line to Contact Form - $(Topic_Text) and the subject line in the email was "Contact Form - $(Topic_Text)". $(Topic_Text) is literally sent back anytime it is in the subject line. I also checked using $(Topic_Text) in the From Email Name field, and it works correctly, with and without leading text.
    Thanks again,
    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    03-03-2009 09:33 AM
    HI Theo, instead of using the $(Topic_Text) in the Subject line, use: $(Topic) instead when in the subject line and this should provide you with the result you need. -- David
    Theo StoneUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    03-03-2009 10:21 AM
    David,
    That would work if both the text and value properties of the selected item were the same. The $(Topic) returns the value of the selected item, which in my case is an email address. The combo box is being bound with the text set to the topic name and the value set to the email address associated with that topic. $(Topic) is used for the Email To Address. Here is a copy of the select statement from the sql bind:

    select t.[Name] as QuestionOption, e.[Email] as QuestionOptionValue from sop_ContactTopics as t
    join sop_ContactEmails as e on t.[ContactEmailID] = e.[ID]
    join sop_ContactCategories as c on t.[ContactCategoryID] = c.[ID]
    WHERE c.[Name] = 'Archives'

    As stated before, the only field this does not work in is the Email Subject. Very odd. But anyway, for now, i have entered a generic subject title for the email with the specific subject in the body of the email set using $(Topic_Text).

    Thanks for your time and help.
    Theo
    ChuckUser is Offline
    river guide
    river guide
    Posts:157
    Avatar

    --
    03-28-2010 08:34 AM
    Posted By David To on 03/03/2009 11:33 AM
    HI Theo, instead of using the $(Topic_Text) in the Subject line, use: $(Topic) instead when in the subject line and this should provide you with the result you need. -- David
     
    I have the same problem.  I am using DF 3.3.40 and when I put the $(combobox_Text) in the subject of an e-mail for a 'Completion Events' event, it comes out as the literal variable in the email response.  When I try to input just the $(combobox) withouth the _Text, it comes out as the Value of the $(combobox). 
     
    I would like the result to be the 'Text' of the combo box instead.  Like the original post stated, its fine in the body of the e-mail but as the Subject line, it shows the literal value.  Yes I have also tried putting extra characters before using the $(combobox) too.
     
    Any further suggestions?
    -Chuck

     

    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    04-08-2010 01:04 PM

    Chuck,

    Let me see if I can help you out.

    When using a token in the Subject line, I believe it cannot be the first character.  For example, this will not work:   $(FirstName), I have good news for you

    But this one will:  I have good news for you, $(FirstName)!

    Please try it and let us know how that works for you.  Thanks!

    Candace

    ChuckUser is Offline
    river guide
    river guide
    Posts:157
    Avatar

    --
    04-09-2010 04:48 AM
    Posted By Candace on 04/08/2010 3:04 PM

    Chuck,

    Let me see if I can help you out.

    When using a token in the Subject line, I believe it cannot be the first character.  For example, this will not work:   $(FirstName), I have good news for you

    But this one will:  I have good news for you, $(FirstName)!

    Please try it and let us know how that works for you.  Thanks!

    Candace

    Hi Candace,

    Thanks for the followup, but as you did on your example, I do put the Token at the end of my Subject line, very similar to what you did.  The issue arises when you try to use the token text value coming from a combo box.  So if My Combo Box with shortname is $(Company) and the combobox value is 10 and the text value is ABC Company, in my Subject Line it would look like this....

    Subject Line:  Message from $(Company_Text)

    It should be received as:
    Subject Line: Message from ABC Company

    Instead, it reads as:
    Subject Line: Message from $(Company_Text)

    As you can see, it gives the token value literally.  Something is amiss when you try to get a TEXT value from a combobox and USE it in the Subject line.

    Now if I change it too:
    Subject Line: Message from $(Company)

    It is received as:
    Subject Line: Message from 10
    That isnt my goal, I want to get the text value of the ComboBox.

    Hope this clarifies it.  Can you run a test on your end?

    Thanks for your assistance,

    Chuck

    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    04-20-2010 02:42 PM

    Ahh, I see what you're saying.  Do you have PayPal gateway on?  One way that we went around similar issues is to create another field that will hold the the numeric values.  So, let's say this new field is called 'Amount'

    1.  On your Company field, let the option text and the option values be the same (like ABC Company).

    2.  Again, on your Company field, create a client side event using javascript to say if ABC Company then  $(Amount) = 10   etc.   I'm not a javascript expert but I know this can be done.

    3.  Use the $(Amount) field to pass value to PayPal.

    4.  On your subject line, just use $(Company) instead of $(Company_Text)

    Hope that helps!
    Candace

    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi