JavaScript to collect correct answers

Hi, in my form 4 questions are here. below the fields of this question, I add some text to add the correct answer. another one of the text fields available to collect a total of points question 4 below. My question answers are below. So if the customer insert the correct answers in the text field, then I want to add + 2 in the total field. If the response from clients resolve questions 1-3-4-5, that the total amount deposited will be 8 points. so thanks for giving me javascript to handle this work. Thanks in advance.

Text field names

Q-1

Q-2

Q-3

Q-4

Response

Correct answer to the first question is: 1

Correct answer to the second question is: 3

Correct answer to the third question is: 4

Good answer to question 4 is: 5

OK, that makes more sense... So, you can use this code as a custom calculation of the total field script:

var total = 0;
if (this.getField("an-1").valueAsString == "1") total+=2;
if (this.getField("an-2").valueAsString == "3") total+=2;
if (this.getField("an-3").valueAsString == "4") total+=2;
if (this.getField("an-4").valueAsString == "5") total+=2;
event.value = total;

Tags: Acrobat

Similar Questions

  • 5.7.1 Lightroom and NIK collection. I installed Nik Collection correctly. I followed the instructions from Adobe for importing the plugin in Lightroom. If I go to "photo" / "past to" (I use the Italian version, so I don't know if the translation of the po

    Lightroom 5-7-1 and NIK Collection. I installed Nik Collection correctly. I followed the instructions from Adobe for importing the plugin in Lightroom. If I go to "photo" / "past to" (I use the Italian version, so I don't know if the translation functions and controls is correct!) happens that all plugins are visible but not active. And even the default plugins are no longer active. I have repeated several times the procedure installation, but without result. Can anyone help? Tiziana

    You may need to do a manual install. See if this link helps:

    https://support.Google.com/nikcollection/answer/3002259?HL=it

  • give us the correct answer option

    How can I set correct answer in the forum of adobe acrobat?

    Hi parveza50504420,

    Please visit this link which deals with the same subject: marking messages as correct or useful on the Adobe forums

    Let us know if you have any other questions.

    Thank you

    Shivam

  • Style in the list of correct answers (Display Mode)

    CP9

    I need change the style (type size) in the list of correct answers when I see the consultation mode. Default size is very small. It's a style? Can I change?

    Imagen1.png

    Thank you!.

    If you can solve it by changing the CSS which will be the best solution. Another solution would be to create a personalized feedback and use a conditional action on enter check if the blade is in playback Mode.

  • Who can mark a correct answer?

    Hi all

    I simply acknowledge this message in my stream of connection:

    The thread is How can I unlock a user locked to MOSC?

    Is it possible for someone else as the thread opener to score a correct answer or helplull? If Yes, who is allowed to do this and in what cases?
    Or is some sort of bug in the display of the stream?

    concerning
    Kay

    Our guideline for moderators is not mark as correct answers on behalf of the author, the author of the thread being the only person who can tell with certainty whether question responded. They do so only as an exception, but you should not see that all the time in MOSC. Moderators are supposed to use the mark the thread as option supposed to answer rather than mark a correct answer. If you notice this happens frequently, please let us know so that we can educate the moderator accordingly.

    Concerning

    Mike

  • Friends in the Forum, this issue was developed by several users and still no correct answer that actually works. How can I make my pdf files show an oreview rather generic logo Adobe?

    Friends in the Forum, this issue was developed by several users and still no correct answer that actually works. How can I make my pdf files show an oreview rather generic logo Adobe?

    Thanks in advance

    Not possible with Acrobat Reader DC.

  • Captivate 9: Quiz test - correct answers appear behind others

    Hi all

    Hopefully an easy fix. As you can see on the image, all by examining the quiz the answer appears under slot the next part of the question.

    It is a question of style "fill in the blank.

    answers.png

    Other types of questions, the correct answer will appear on top - it seems possible!

    Any help is appreciated!

    Thank you

    Thanks for the reply.

    Fortunately in the meantime I managed to work around the problem, thanks to someone else with a similar problem: Re: Captivate 9 - fill in the Blank consultation Mode - hope this will help others.

    The finished result

    I will also report this as a bug.

  • Correct answer? (SQL)

    I read the question from a book.

    If we are forced to build an equi-join of 30 tables, how to join

    Have conditions?

    a. 30

    b. 20

    c. 29

    d. the number cannot be determined

    I wonder what is the correct answer to the following question, C or D?

    The book says is correct C.

    The theory says

    "To join the tables together n, you need a minimum of n-1 join conditions.

    For example, to join the four tables, a minimum of three joints is necessary.

    This rule do not apply if your table has a concatenated primary key.

    in this case more than one column is required to uniquely identify each row. »

    What should I answer if this issue was in a test 1Z0-051?

    I would answer D. Is this wrong?

    That's the problem with people who write these test questions.  They forget to check their questions of ambiguity.

    So, assuming that each table has a single unique primary key that relates to foreign keys in other tables, then the answer would be 29.

    However, suffice it to say there are 30 paintings, does not the number of columns is required of each table to perform joins, so the answer is that it cannot be determined.  If the other answers had said for example "at least 29" which would have been okay, but as it gives an exact "29", it is not necessarily true.

    I hate ambiguous questions.

  • How can I display the correct answers in a quiz about Adobe Presenter 10?

    Hi all.

    I am new to Adobe Presenter.

    I finished all the questions of the quiz, but I want to show the correct answer when the user chose a wrong answer and submit it.

    I tried many things and does not display the correct answer.

    Thank you.

    Rafael.

    The correct answers are displayed after the quiz is over and the user examines the quiz. If you want the answer to be revealed to the user in the quiz, then you will need to customize messages of comments to indicate the right answer. They are just the text boxes on the slides, so you should be able to easily add text to them.

  • multiple choice with partial credit question, I have 10 responses only 6 are correct.  How to assign 10 points for each of the six correct answers for a total of 60 points setting?

    How can I assign partial credit so that for each possible answer 6 out of 10 each correct answer gets 10 points each, with a possible total score of 60 points quiz?

    To Captivate 7, please go to the Quizzing workspace. You will have the properties and properties Quiz Panel visible. I will now repeat the workflow, I explained briefly for CP7:

    • Check the partial score in the Quiz properties and also multiple responses.
    • Indicate the correct answers on the stage
    • Select the first correct answer on the stage text caption and indicate its score (10pts) in the properties panel, not in the Quiz properties!
    • Repeat the same for each correct answer
    • Check the total score in the properties of the Quiz Panel: should now be 60pts to the full question.

    None of the quiz system variables can be changed, they are read-only. System variables in Captivate 6 - Captivate blog explains the system variables for 6 categories, there are a few changes in 7: new features of Captivate 7.01 - Captivate blog but the Quiz category is always read-only.

  • Pointing out the correct answer after failing to question?

    Hello

    I'm experimenting Captivate 7 and worked on how to do just about everything I need it to do. I have 3 or 4 mini-quizzes scattered throughout the presentation that allow 3 attempts before moving on. What I would do, is however, before continuing, display or highlight the correct answers. Is it possible to do?

    Thank you

    Hello and welcome,

    Normally this will be done during the review: correct answer indicated (with a check mark) as well as the answers given. But the inquiry cannot be done after the quiz was made using a button on the slide to Score.

    It could be done, perhaps a bit difficult for a beginner. Question slides do break (you see the double vertical line in the timeline of the slide) and this break is used twice: playhead rest pause when the user clicks on send and see the legends of your comments, then it must support on Y or click on the slide to leave the playback head. Look at the accordion of actions in the Panel properties Quiz: success and the last attempt are by default set to "continue".

    More information: http://blog.lilybiri.com/question-question-slides-in-captivate and http://blog.lilybiri.com/question-question-slides-part-2

    If you understand this workflow, you could time a highlight (box or something else), immediately after this point of suspension. As the playhead will continue, this climax appear, but be visible only for the period after the point of putting paused. If this is not enough, you can do the longest slide in questionnaire.

    Here I change the duration of the Quiz slide to 5 seconds, which means that the highlight box will be visible to (1. 5-5) = 3.5 seconds before the read head reached the end of the slide and goes to the next slide

  • Helpful answers available: 5. correct answers available: 1

    I see the "helpful answers available: 5. correct answers available: 1" statement on top of son unanswered. Although there is no useful or correct answers to the question. Why?

    That statement is a description of what the author of the thread is available for them.
    The formulation of such a description could be better, but it is what it is.

    The person who posted the question in the forums can be tilted up to five responses as "helpful" and can choose to mark a response as "correct".

    Of course, this action can (and often is) simply ignored.

  • Correct answers for drag and drop dialog box

    I'm trying to get a better handle on the different options for drag and drop interactions.

    The right answers dialog box is used only for the edition of the correct answers after a drag and drop interaction has already been created?

    What does the column 'Number' and what is its purpose?

    Hi jay,.

    With the correct answers dialog box, you can get the following,

    1. can I change the answers correct configured.

    2. can define several correct answers to the same question.

    3. can we do good response as a 'combination', or a sequence

    The "count" column allows you to set the correct answer in the following scenario.

    Suppose you have a bunch of oranges (Say 12) while sources drag on and a fruit basket is in the form of the target, and the question is to drag and drop five oranges in the fruit basket; Then, you can configure a drag and drop interaction as follows,

    1. Select all the oranges, mark them as source and add them to the custom type orange

    2. mark "Basket of fruit" as target.

    3. create a correct answer between the oranges and the basket link.

    Now when you open the correct answers dialog box, it shows the correct answer as follows.

    Orange > basketball > 12 fruits.

    You can change the number of 5, the question being 'Drag and Drop five oranges' at the fruit basket.

    I hope this helps.

    Thank you

    VERALINE Sukumaran.

  • FORUM, counters ok? Helpful answers available: 5 correct answers available

    Comes to the counters for threads in message ok?
    It shows "* helpful answers available: 5. correct answers available: 1." * for multiple messages. "

    rgrds Paavo

    Hello

    I don't know =) maybe you start the new thread on the community forum your comments and Suggestions
    Community feedback (no product Questions)

    Kind regards
    Jari

    -----
    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • cpQuizInfoAnswerChoice for several correct answers

    Hi forum,

    I got a new question regarding the feedback quiz in Captivate.

    In a multiple choice question, there are three good answers; How could I make a tip action for each answer that changes the images? If I got that one correct answer, it works well but with more than one correct answer, I had the wrong 'image - change '.

    My idea (see screenshot): If the answer 1, 3 and 5 is correct then show Image_291 and Text_Caption_870. But it does not work - the editor shows the result of "Else" even if the correct answer is marked.

    cp-problem.jpg

    Any ideas? What I am doing wrong?

    Thanks in advance!

    Markus

    The variable cpQuizInfoAnswerChoice system can store only one value and is filled again after each question.

    "Several right answers to a multiple choice Question, by your example it will store ' 1,3,5" since it can store only a single value. Your action will be much easier, right?

    Lilybiri

Maybe you are looking for