same question for multiple people.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • love91501
    New Member
    • Apr 2010
    • 4

    same question for multiple people.

    Ok, so I am new to javascripting and came across a situation where I need help. I am doing a Health risk assessment script and I need to be able to populate the questions for each member in the household, there can be up to 8 members in total and there is one main account holder. But I dont want the questions to permanently be there 8 times but the members names I want displayed on each page with just an answer and a comment field behind them. I hope this makes sense and I could use alot of help. Thanks!
  • love91501
    New Member
    • Apr 2010
    • 4

    #2
    I'm not sure if I'm not being clear enough, but Basically the data is sorted by phone number so In my data there might be up to 8 same phone numbers each with a different member but they all belong to the same household and I need one script to pull all of the names and bring them to the same script. If you need more information let me know but I really need help on this one. Thanks!

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      you are really not clear enough ... when should what be retrieved and displayed? ... explain the usecase a bit more ... so that it is understandable what the exact problem is ...

      kind regards

      Comment

      • love91501
        New Member
        • Apr 2010
        • 4

        #4
        Ok, so say I have Question 1 and it is
        Q001: 'Do you see your dentist regularly?'
        From the data we have say the phone number 856-524-5412 pulled up 6 different people matching that phone number. Now I need the question to pop up 6 times not anymore than 6 and no less than6 times but they all have to be labeled Q001. So I was thinking of doing a Q001A Q001B Q001C etc but I would like to pull the customers names so The rep looking at the screen knows for which customer they are answering each question for. Let me know if that helps. Thanks~

        Comment

        • gits
          Recognized Expert Moderator Expert
          • May 2007
          • 5390

          #5
          so ... it's for a kind of office app where a sales (or other rep) will use a webpage to answer some questions ... and the app should support him to present him/her the questions for all members of a household he/she is currently at ... so the simplest way would be to create one page for a question. on that page you could create 1...n identical (except names or whatever) sections (divs) and hide all except the first one ... when the question is completed ... hide the first and unhide the second .. and so on ... after answering all sections ... send the form (plain form-submit or ajax-call as you like) ... and proceed with the next question ...

          kind regards

          Comment

          Working...