Quick login...
 

 

  

DNN Modules
SnowCovered Top Sellers

Ultra Media Gallery is the most popular photo gallery and media gallery solution for DotNetNuke, UMG offers 10 different flash player to browse your gallery with completely different user interface experience.

Powerful, Ajax Enabled, Easy to Use. Document Management and Multimedia gallery functionality in one.Open-DocumentLibrary allows DotNetNuke users to organize share and manage documents, offering granular control over Folder and Document access.

Active Social is customizable social networking solution that fits the needs of a large company, small group, start-up business, or any size interest group. Connect with co-workers, people with similar interests, family, old friends, or meet new ones. Active Social provides a complete communication

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

In this day and age, knowing as much detailed information as possible about your customer, prospect or web site user is essential. Thankfully, the new 'Dynamics Forms' module from Data Springs, makes it easier than ever to segment your data collection efforts.

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 and play them in our integrated flash video player.

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

The amazing ANY COLOUR Flex2 skin + our unique EasyMod module allowing you to customise just about everything in this skin. DrNuke just re-wrote the rule book again.

The Future of Enterprise Search for DotNetNuke 3.x and 4.xOpen-SearchEngine provides DotNetNuke with a true enterprise search engine capable of indexing html content as well as documents from multiple sites and/or physical directories.

Capture your users attention, enrich your site with multimedia flash, and create and opt in distribution list for your DNN site. These are just a few of the many features the Data Springs Module Collection can provide you.

Recently Viewed...
DNN Modules
   
    |   Register   |   Wednesday, March 10, 2010   
Hi Everyone!

You'll notice that we implemented a small change where your first and last name are now displaying in the forums.  If you do not wish to display your last name, please update your user profile and add a display name.  You'll find this by clicking on your name at the top of the page (right next to the Logout link).  Thanks!

Data Springs Product Forums...
Subject: Using Hidden Field Values in Paypal
Prev Next
You are not authorized to post a reply.

Author Messages
Michael Grinnell
Posts:31
paddling down the creek
paddling down the creek

04/23/2008 11: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 Nash
Posts:3337
river guide
river guide

04/23/2008 11: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 Grinnell
Posts:31
paddling down the creek
paddling down the creek

04/23/2008 11: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 Mixon
Posts:3


06/21/2008 5: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 Lambie
Posts:80
river guide
river guide

05/31/2009 10: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.
Candace
Posts:1089
river guide
river guide

06/01/2009 11: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

Candace
Posts:1089
river guide
river guide

06/01/2009 11: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 Lambie
Posts:80
river guide
river guide

06/01/2009 11: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/ProductForums/tabid/727/forumid/3/postid/10295/view/topic/language/en-US/Default.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 Nash
Posts:3337
river guide
river guide

06/03/2009 5: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 Lambie
Posts:80
river guide
river guide

06/03/2009 10: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 Lambie
Posts:80
river guide
river guide

06/04/2009 6: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 Lambie
Posts:80
river guide
river guide

06/09/2009 11: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/ProductForums/tabid/727/forumid/3/postid/10325/view/topic/language/en-US/Default.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 Nash
Posts:3337
river guide
river guide

06/10/2009 12:00 PM  
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.
Forums > Product Discussion - DotNetNuke Modules > Dynamic Forms > Using Hidden Field Values in Paypal



ActiveForums 3.7
Copyright 2005 - 2010 by Data Springs, Inc.
Terms Of Use | Privacy Statement