Chad, Don't worry about my last post (javascript). I think I just learned a bit about how it works. I would like to go back to my previous post and ask for your assistance.
_________________________________________________
Before I do, I wanted to mention that after a couple hours of testing, this is what I have uncovered. (1) the textbox needs to be hidden for the SQL to work (or at least not a 'standard' textbox). (2) If I enter a literal default value in the field settings, the SQL will work. (3) If I change the default value using a question event SQL, the SQL it does not work - regardless if the text field is hidden or not and regardless it there was an initial default value (in the field settings) or not. With that being said, on to my post..........
_________________________________________________
Chad,
1. Can you tell me if the sort order of txtEmail is before or after the fields affected by the question event?
--- Answer: --- txtEmail is before the field affected by the question event.
2. Can you tell me if you make txtEmail a hidden field with a static value if that works?
--- Answer: --- Yes. txtEmail as a hidden field with a static value works.
This is really what I was trying to do---I have two DNN Suggest fields (SugName and SugEmail). I wanted the user to enter a (valid) value in each DNN Suggest field and have an SQL question event validate that both values (SugName and SugEmail) are correct for the same user record and if so, enter the UserID (for the SugName and SugEmail user) in a hidden field.
I tried setting up a question event for one of the DNN suggest fields but event though I have the option to select the Suggest field in the question event set up, when I selected a value from the SugEmail field, I did not get a question event postback.
So, I thought I would test using a text field and use client side javascript to populate the text field from the Suggest field - $(txtField) = $(SugField). However, when I put the client side javascript in the suggest field (it comes before the text field) and entered a value in the suggest field, the client side java script did not populate the text field. Go figure.
I don't really want to use a dropdrown box and have the user select a value from an overwhelming number of choices. I was hoping to use a DNN Suggest box to assist the user in selecting a valid value for both a name lookup and email lookup field. At that point, I wanted to populate a hidden field with the UseriD for the corresponding name lookup and emaili lookup.
Any suggestions? Thanks.