Home arrow Support arrow Forums
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
[done] Auto Fill answer? (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: [done] Auto Fill answer?
#18301
buddha (User)
Junior Lime
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
[done] Auto Fill answer? 2 Months, 2 Weeks ago Karma: 0  
Hey there.

Im trying to set my survey to do the following:

Question1: Drop down with 3 options. When you select one of them they trigger question2 to appear (pretty standard so far)

Now when they select an answer from Q1 eg option 3. option 3 willf ill question 2's field with a value. option 2 will fill question 2 with a diff value etc.

I know its quite confusing but if anyone knows a way.

this is the latest build of Version 1.71+ (5394)
 
Logged Logged  
 
Last Edit: 2008/09/08 16:00 By Mazi.
  The administrator has disabled public write access.
#18303
buddha (User)
Junior Lime
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Re:Auto Fill answer? 2 Months, 2 Weeks ago Karma: 0  
OK if i make question 2 a radio list with 1 option selected as default then it kinda works. problem is that this field is an email address that the CC gets sent to.

So @ the moment using the radio option it comes out like this in the cc field: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it [1]

Now admin gets the email no prob, but the user doesnt get their copy because of the [1] at the end. the 1 is the Code for that answer.

can i remove the code?

thanks
 
Logged Logged  
  The administrator has disabled public write access.
#18304
buddha (User)
Junior Lime
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Re:Auto Fill answer? 2 Months, 2 Weeks ago Karma: 0  
Hey Ok quick update.

managed to get it working by removing the [1] via php:

$extra_receipient = eregi_replace("[1]","",$extra_receipient);

that solved it
 
Logged Logged  
  The administrator has disabled public write access.
#18374
Mazi (Moderator)
Moderator Lime
Posts: 3252
graph
User Online Now Click here to see the profile of this user
Re:Auto Fill answer? 2 Months, 2 Weeks ago Karma: 25  
Nice and pretty dirty workaround
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#18377
buddha (User)
Junior Lime
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Re:Auto Fill answer? 2 Months, 2 Weeks ago Karma: 0  
only the best kind of workarounds are dirty
 
Logged Logged  
  The administrator has disabled public write access.
#18455
Mazi (Moderator)
Moderator Lime
Posts: 3252
graph
User Online Now Click here to see the profile of this user
Re:Auto Fill answer? 2 Months, 1 Week ago Karma: 25  
I can absolutely confirm this
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
Go to top