Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    survey software - conditional appearance of input

    I am attempting to make a php/ajax integrated (essentially) survey software - although I have run into a road block
    we have a question like
    "did anyone in your party order a drink containing alcohol"
    answer 1 / answer 2
    this does not pose a problem -
    the problem comes with the following question
    "was that person ID'ed"
    answer 1 / answer 2
    I only want this question to be visible to people who answered with answer 1 to the previous question if they answered answer 2 I still want the question to answer answer 3.

    one more problem is I need this to be available via a function call because all questions will be coming from a database and will vary from survey to survey

    Code:
    "<input type='radio' name='answer[]' value='".$answer."'>"
    I am new to ajax/js but experienced in php among other languages - this is a big roadblock for me and I appreciate any assistance you can offer me
    Last edited by Jhstaffo; 07-30-2012 at 02:17 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •