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!

Text/HTML Module text disappears
Last Post 06-12-2008 08:52 AM by Chad Nash. 17 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Michael GrinnellUser is Offline
going with the flow
going with the flow
Posts:31
Avatar

--
05-06-2008 06:55 PM

    All -- I am using the

    structure as noted in one of the demonstrations.  After creating the new text/html field and enter
    I return to the question and sometimes the div is there but frequently it has 'disappeared'.  I enter it again and save, but then it disappears yet again.  What gives?  Has anyone had this experience?

     

    Thanks,

     

     

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    05-07-2008 09:14 AM
    Hmmm... What version of Dynamic Forms are you running on? Are you choosing 'Update' or 'Update and Exit'?

    When you say disappears, does the HTML field completely disappear (do you not see it in manage questions) or does the DIV just disappear. These types of client side events don't always play with question events (if the form posts back) so keep that in mind as well.

    Chad
    Michael GrinnellUser is Offline
    going with the flow
    going with the flow
    Posts:31
    Avatar

    --
    05-07-2008 09:26 AM

    Chad -- still need to do the tutorial on using Paypal, but in the meantime, I am using 2.6.   If I enter

    with the options set to basic text box/html then update or save and exit it is not there when I return after doing some other work, for example, on the Javascript file.  What is odd is that I am looking at it on another computer now and I see it.  It seems to be happening on my computer at home.  Would there be some reason it is not being retrieved?  I cleared the cache (I am using Mozilla at home) and it still happened.. 

     

    Mike

    korry scottUser is Offline
    Posts:15
    Avatar

    --
    05-13-2008 08:49 AM

    Hi Chad,

    I'm having the same problem as Michael (I think). I'm currently using Dynamic Forms 2.5 and I'm referring your Authorizenet Example. If a selection is made after the product is chosen, the HTML field text (the amount text that appears after "Your total comes to:") disappears. It even does it in your example (select the product then change the region). Any idea on how to fix this? Thanks!!!

    Korry

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    05-13-2008 03:38 PM
    Hi....well apparently in our demo (which also means in the IPORTABLE file) had a question event tied to it. The event has a blank name which doesn't help anything. So, if you delete this event this should fix you up... I still need to update the XML template but will post a new one soon. Question Events and Client Side Ecents don't play very well together whichis why this issue was coming up.


    Thanks,


    Chad
    korry scottUser is Offline
    Posts:15
    Avatar

    --
    05-19-2008 02:41 PM

    Hi Chad,

    Thanks for your response. Okay, deleted all of my question events as you suggested. However, the total still disappears when the form has to "reset" itself. For example, if a required field is not completed and then the submit is clicked, the form "resets" (I'm sorry, I don't know the correct term, all of the filled in content stays except for the total, it zeros out). It does it with that HTML example (Your total comes to and I also tested it with a read only text box and it also disappeared. However, the total did stay in the text box field if it wasn't set for read only (but I can't use that option because I don't want the user to change the total). Sorry if my message is confusing. Thanks for all of your help in advance!!

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    05-19-2008 03:24 PM

    Hi. I see... Well, ill check to see what might be necessary or possible such as 'start up script' that would always be executed regardless of postback on the page. I can see how this is an issue with question events, but when it comes to validation and so forth if the same problem is happening we will need a better solution.

    As far as making sure the user is paying the right amount, I would suggest using the 'Total Field Calculation' within the payment integration settings. What are you calculating? Are you calculating two fields, a checkbox group list, etc?

    There are a few functions that are available for calculations (not client side but server side)

    $(Calc_TotalField) - This references / calculation what you enter for the 'total field' within the payment gateway. For example $(Field1) + $(Field2) could then be referenced within the Authorizenet or PayPal parameters as &Total=$(Calc_TotalField)

    $(CalculateList:ShortFieldName) - Calculates checkbox group fields or listbox fields... Each of the 'value' properties for the checkbox list should either be a value or VALUE01_price.

    So for example, if you use the CalculateList feature, you could have a check box group that has 'Products' with values such as this:

    Text: Product 1
    Value: 19.99

    Text: Product 2
    Value: 25.00

    OR (and mostly used if you want to have two products of the same price)

    Text: Product 1
    Value: VALUE01_19.99

    Text: Product 2
    Value: VALUE02_25.00

    The VALUE01_price - thru VALUE02_price was added to support customers implementations where you might want multiple products purchased at the same price.

    Again, those two function calls are on the server side not actually related to the client side events where the user see's the price. They can be independent (and sometimes have to be) because the payment gateways can't reference for example the html that is changed to dynamically show the current calculated price. You will notice that in the demonstrations we use on Dynamic Forms for authorizenet that we use client side events to show them the price, but then we use $(CalculateList:Field) within the actual total that is passed to Authorizenet.

    I know this can be confusing... But, the reality is that you need to be able to reference the total within a variable that is more than just there for 'display'. Ill research the issue with displaying the total for the user though in cases where the postback occurs. Probably need to be able to call the same function call for 'page load' or something like that.

    -Chad

    korry scottUser is Offline
    Posts:15
    Avatar

    --
    05-21-2008 02:44 PM

    Hi Chad,

    Few more questions. If I'm using a list box (or I guess this question would apply to the Check Box group also) how do I reference the text name? If I use the shortfield name, ex. $(Products), only the value is referenced. I want to send a confirmation email and list the name of the product that was purchased and the price. I noticed there was a $(Products_FullResults) option for that particular shortname,  but that didn't work either.

    Thank you for the example above. Second question, why doesn't the form recognize the value entry for the Radio Button option.

    Last question, were you able to find out why the "postback" causes that Total field to clear? I really would like to have that total option on my form.

    Thank you very much!!

    Michael GrinnellUser is Offline
    going with the flow
    going with the flow
    Posts:31
    Avatar

    --
    05-21-2008 05:21 PM

    Hi Korry,

     

    You have to somewhat manually go in and get the value from the radio buttons.  It's a bit confusing at first, but below is an example of a js function that returns the value when the shortname of the radio button control is passed in.

    function  fucCost(RadioName)
    {
    var chkList1= document.getElementById (RadioName);
    var arrayOfCheckBoxes= chkList1.getElementsByTagName("input");
    var total;
    for(var i=0;i {
    if(arrayOfCheckBoxes.checked)
    {
    total = arrayOfCheckBoxes.value;
    return total.substring(0,3);
    }
    }
    }

     

    Mike

    Michael GrinnellUser is Offline
    going with the flow
    going with the flow
    Posts:31
    Avatar

    --
    05-21-2008 06:07 PM

    Chad,

     

    Did you mean the &amount Paypal toke or the &total paypal token (see text below from your posting)?  I don't see that there is a &total token.  Also, how is one supposed to get hold of $(Calc_TotalField)?  Is that supposed to show as a Dynamic Token somehow? 

    Thanks - Mike

    $(Calc_TotalField) - This references / calculation what you enter for the 'total field' within the payment gateway. For example $(Field1) + $(Field2) could then be referenced within the Authorizenet or PayPal parameters as &Total=$(Calc_TotalField)

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    05-23-2008 10:28 AM

    Korry - Seperate from client side events, you can reference all field properties for combo box's, radio buttons, and so forth using:

    $(ShortFieldName_Text) - This should work for combo box, radio buttons, checkboxlist, listbox field types and should render the text property of the field and not the value property of the field

    Mike - I am just referring to any generic token so I would ignore the &amount or &total etc... These are just examples, each payment gateway will be different and the properties for each payment gateway should be in the dropdownlist of avaliable tokens within that section. The important piece is that $(Calc_TotalField) property. This property basically renders the calculation for the payment gateaway (the section right above the Authorizenet or PayPal expanded sections within the payment gateway section referencing the total field). This will basically calculation whatever is in that setting and will render its results within the $(Calc_TotalField)

    So... Within that field if you set the property of the field calculation to be: 100 + 100 then rendering the $(Calc_TotalField) should render 200. You can also reference field tokens such as $(Field1) + $(Field2) etc...

    Another note... Make sure you are signed in as the Admin and add ?Debug=True to the querystring within the form. This will render (once submission is made) the specific URL that is being passed to either Authorizenet or PayPal. I believe for Authorizenet it will pass the information and show you the results returned from Authorizenet and for PayPal it will not redirect to PayPal but show you what it would be passing. This should help to make sure you are passing the right information and the fields are getting calculated properly.


    Ummm.... I believe the $(Calc_TotalField) can also be referenced within email completion events... The key is that its getting its results based on what you have entered for the calculation total field withint he payment gateway.


    -Chad

    korry scottUser is Offline
    Posts:15
    Avatar

    --
    05-23-2008 10:51 AM

    Hi Chad,

    I used the $(ShortFieldName_Text) and it still doesn't work. Also, any more thoughts on displaying the total? Thank you very much!

    Korry

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    05-29-2008 03:13 PM


    Are you trying to use it in a client side event or completion event? I believe the property is only there for completion events (such as email) and is not a valid token for client side events.

     

    For the 'displaying the total' after something such as a postback... We have a solution for this now, we will be releasing a patch of Dynamic Forms by end of day tomorrow on Snowcovered. This patch fixes a few minor issues and will also add a few minor enhancements. One of those enhancements is that you can now define a javascript function to be rendered upon page load/after postback. This is defined in a new field right above the main javascript file. We just setup a new demonstration that covers this here.

     

    You will also notice now on our demonstration for Authorizenet that if the form executes a postback (i.e. you enter a credit card number wrong and click purchase) it will now keep the total since we added the same javascript function call to the initial javascript setting that is executed for the products check box list.

     

    -Chad

    korry scottUser is Offline
    Posts:15
    Avatar

    --
    05-30-2008 10:05 AM

    Hi Chad,

    I figured out my issue with the $(Shortname_Text) token: it only works with Radio buttons and Check boxes. It doesn't work with the List box option. I'm not sure why that is, but I just changed my question set up.

    Thanks so much for creating that patch. I can't wait to use it!

    I have one more question. And an invoice number be created with Dynamic Forms, i.e., a "field" that automates an invoice number each time the form is filled out?

    Thanks again for all of your help!

    Korry

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    06-04-2008 08:45 PM
    Well... Do you need this field to just be unique? If so you could generate a unique number from a GUID (global unique identifier) with a SQL default such as this:

    Select cast(NewID() as nvarchar(50)) as DefaultValue


    This will return a very unique value such as:
    6D610077-46A4-4DC2-B921-1BEEA93586AD

    And the chances of getting a duplicate are extremely slim. This is usually a great method to have a unique number for the other. you could also change this to remove the - marks etc...

    The other option would be to use a SQL Completion Event to insert the data into another table (such as a log table etc...). Then you could use a SQL default to get the current row count +1 so that it will increment.

    Such as:

    Select Count(*) + 1 from YourTable as DefaultValue

    This will return the row count, plus one. Then when the user submits the form a SQL completion event will add a new row to the table (and therefore the number will go up for the next user)


    Hope this helps!

    -Chad
    korry scottUser is Offline
    Posts:15
    Avatar

    --
    06-10-2008 06:51 AM

    Hi Chad,

    I used the:

    $(Calc_TotalField) - This references / calculation what you enter for the 'total field' within the payment gateway. For example $(Field1) + $(Field2) could then be referenced within the Authorizenet or PayPal parameters as &Total=$(Calc_TotalField)

    function in a new form and during testing, I received an error message stating to enter a valid amount. I don't know what I'm doing wrong.

    On my form I have a dropdown list of values that includes an Other option (with a value of 0.00). If the Other is selected then a text box is suppose to appear (which is a whole another issue, sometimes the question event works and then magically it just stops working. I posted another post about this and I followed your instructions and it still stops working if I make any change to the form even if I resave the question event). If the user chooses the other option and then enters the amount (I put a regular expression on the field so the amount is entered in #.## format), then in theory if the Calculation Total field contains $(Field1) [let's say this field is equal to the values on that dropdown list] + $(Field2) [this field will be the text box field with the entered amount] then should it calculate the total with no problems. Is there a problem having that Other value equal to 0.00?  Can you think of a better way to do this? I guess I could give the Other a value of 1 and multiply that to the Text box field? Help!!!

    Korry

    korry scottUser is Offline
    Posts:15
    Avatar

    --
    06-10-2008 11:08 AM

    Hey to anyone reading this string. I was able to get a big help on using that Calculation Total field from the Data Springs guys through Snowcovered:

    HI. Ok, I found the issue. Interesting, it works but only if you are referencing a $(token) when its not in the first character.

    For example:

    "$(Gift) + 1"

    Will not render properly, as I am reviewing the code and its looking to see if its included within the first character of the string (not character 0)

    So it appears to work if you were to try:


    " $(Gift) +1"

    Notice the space between the " and $(Gift).

    So remember to put a space before the tokens and the calculation will work just fine.  Thanks Data Springs!!!!

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    06-12-2008 08:52 AM
    Thanks.... I also just wanted to follow up on this and this has been fixed for the next major or minor release.

    -Chad
    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