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!

Using Hidden Field Values in Paypal
Last Post 06-10-2009 10:00 AM by Chad Nash. 12 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

--
04-23-2008 09:11 AM

    All,

    I created two hidden fields to capture the output of javascript functions that figure the costs and types of memberships.  In this case, I have the following in the client side event of a radio button:

    $myCost = fucCost($(myMembership_FieldID))

    $myCost is properly derived at $50 (or whatever) and I can show that value in a text/html field.

    In trying to add $myCost to the Paypal gateway in the form of additional parameters (like this -- &amount=$(myCost)) , Paypal never gets the value.  The values in all other visible fields are passed to Paypal, however. 

    Any ideas on what is going on?

     

     

     

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    04-23-2008 09:26 AM
    Hmmmm.... If you view the source for the HTML/Form and do a search for the hidden field do you see that its actually getting set there? Also, I am assuming you are doing $(myCost) = and not actually $myCost right?

    I would temporarily change the hidden field to be a textbox and get it working (visibly) first, make sure its passed correctly first, then change this to be a hidden field.

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

    --
    04-23-2008 09:51 AM
    Interesting -- Dynamic Forms is not letting me change the Hidden Field to a textbox. I change it from hidden to textbox and save and the textbox is not shown. I got back into question setup and it is back to hidden. Odd. I will add a brand-new textbox to try.
    Jeff MixonUser is Offline
    new to the springs
    new to the springs
    Posts:3
    Avatar

    --
    06-21-2008 03:24 PM

    I'm running in to this same problem actually. I have a SQL driven combo box. Upon selection, I have various SQL driven hidden fields that populate based on the value of the combobox. I am attempting to pass all these values in to the Paypal gateway querystring, but all the hidden field values do not show up. The combobox value does. In debug mode, I can see all these queries are working and are populated with the correct values.

    Additionally, I created readonly textboxes to replace the hidden fields. These worked until I make them invisible using "Do not display until forced by question event" or custom CSS . In these cases, the values stop being passed to the paypal querystring.

    Not sure how to proceed at this point...

    Craig LambieUser is Offline
    river guide
    river guide
    Posts:88
    Avatar

    --
    05-31-2009 08:22 PM
    I am having a similar problem in Dynamic Registration.
    I have a field EnablePGateway which I want to make hidden, it is set based on the outcome of a Javascript.
    Problem is when I make it hidden or "hide until visilble" it doesn't render in the HTML at all. So the JS errors.
    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    06-01-2009 09:00 AM

    Hi Craig,

    The EnablePGateway field was designed to turn the payment gateway on or off.  Is this what you're attempting to do?  Or are you simply trying to pass certain values based on a client-side event?

    If it's the first case, does the EnablePGateway field work if it's not hidden?

    Candace

    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    06-01-2009 09:44 AM

    Hi Craig,

    I just tested a hidden EnablePGateway field on our test site, www.betasprings.com and it worked on both True and False values.  If you want to pass certain values based on a JS using a hidden field, try using a different short name and use $(ThisShortFieldName) in the parameters.  Hope that helps!

    Candace

    Craig LambieUser is Offline
    river guide
    river guide
    Posts:88
    Avatar

    --
    06-01-2009 09:20 PM
    Hi Candace,
    I am trying to enable or disable the Paypal requirement Post the form, yes.

    I want to send the user to Paypal if the JS has calculated an amount > 0 in the Amount Field. So that Paypal doesn't error getting 0 as the amount.

    I have tried to use a text box, a radio object, and a hidden field.
    This thread is about the erroring Radio object for Checked Value setting, and that was when it was visible.
    http://www.datasprings.com/Products...fault.aspx
    If you set it to hidden it is not in the HTML at all.

    If I change the ShortFieldName shorley the Paypal Enabler won't work?

    Thanks
    C
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    06-03-2009 03:46 PM
    Hi. A few threads on this but ill sum up my suggestions.

    1. EnablePGateway as the short field name only works if the payment gateway is first turned on (in other words it has to start enabled under module configuration). Then you can use the EnablePGateway to turn the payment gateway off if you wanted to.

    2. I would start with making the field a textbox (not read only textbox). Its fine if you need to display a total to the user in a read only textbox, but keep in mind this variable will not be avaliable if it has changed via client side events because of security. Because of this, you need to also set the value to a hidden field. For example.

    In a client side event:
    $(ReadOnlyTextbox) = '15.00' <--- This field will not be avaliable when passed to PayPal or in email events etc... Because you are changing a read only field via JavaScript the value is not going to be stored in viewstate. This is a security issue and how ASP.NET/HTML works (as far as I know0.

    $(RegularTextbox) = '15.00' <-- This should be avaliable

    $(HiddenField) = '15.00' <-- This should be avaliable, just make sure that you are using the hidden field question type and not something like 'Hide by role' or 'Hide until forced visible by question event etc...

    This same concept applies to EnablePGateway, you will need this to be a textbox or hidden field. I would first get it working as a standard textbox and then worry about moving it to work as a radio button or other field type to simplify things.


    I hope this helps with understanding how this feature works.


    -Chad
    Craig LambieUser is Offline
    river guide
    river guide
    Posts:88
    Avatar

    --
    06-03-2009 08:58 PM

    Hi Chad/ Candace/ David,

    I have now changed on your suggestion the fields Amount and EnablePGateway to Text Fields, that are not Read Only.

    I can now get Paypal to enable/ disable. Yaah.

    I just need to be able to make these fields Hidden now so it can be used in the ASP.Net.  Currently when I set them to "Hidden" type fields, they dissapear from the HTML, which makes it rather hard to change them via js.

    However, the Completion Event that should happen after this is not running.  It is a SQL SP.  Based on EnablePGateway = True or False (2 CEs)

    I have a Logger in the first line of the SP, which is not running at all.

    The DR module is on the Registration Page, which is visilble to all, however the module itself is not publicly visible, only to logged in users.  Also the CE for when EPG = False is not running either.

    How do you debug this?

     

    Craig LambieUser is Offline
    river guide
    river guide
    Posts:88
    Avatar

    --
    06-04-2009 04:35 PM
    I have added a hidden field called "AmountTotal".
    The Client Side Code for Voucher Field is now:
    CheckVoucherCode ($(Voucher),$(Account_FieldID),$(Voucher_FieldID),$(EnablePGateway_FieldID), $(Amount_FieldID), $(AmountTotal_FieldID) );

    Update the JS function (top only)
    function CheckVoucherCode (varCode, varAcTypeID, varVoucherID, varPaypalID, varAmountID, varHAmountID) {


    if (varHAmountID != '') {
    var vHAmt = $(varHAmountID);

    alert ('AmountHidden:'+vHAmt.value);

    } //end if

    -------------

    The JS is not getting the ID of the Hidden Field. Therefore it is failing.
    I cannot see the Hidden field in the HTML, it is not being rendered/ created.

    If you could try for yourself. Log in using the Details I sent you via email and see for yourself.

    Thanks

    C
    Craig LambieUser is Offline
    river guide
    river guide
    Posts:88
    Avatar

    --
    06-09-2009 09:14 PM
    Hi Chad /DS/ Forum,

    Ok, after a discussion with Chad I have hard coded the Hidden FieldIDs right into the JS, which makes it work a charm - The js that is.
    I can now update the EnablePGateway as a hidden field and have a hidden and visible amount fields for js to manipulate, and for Paypal to run/ not run.
    Yaah. 1 step.

    Now. The other issue is the completion event is not running.
    I think this discussion is more relevant to thread http://www.datasprings.com/Products...fault.aspx so moving discussion to there.

    For this thread, the errors with Hidden fieldIDs can be solved by Hard Coding the FieldID into the JS instead of sending it dynamically, which is now a known bug of DR.
    ie. $(EnablePGateway_FieldID) does not work in the ClientSideEvent field.
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    06-10-2009 10:00 AM
    I just wanted to follow up. Yes from our call we were able to verify that the 3.2.8 (most current release) does have a bug where its not replacing the $(HiddenShortFieldName) within client side events. So the work around is to use the full ID of the field until this is fixed. I just checked the development on the upcoming 4.0 release and it does appear to be fixed within the code already.

    Thanks and glad you were able to get it working!

    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