Products and Services Transaction Type in the PayPal Payments Standard Add-On

Products and Services Transaction Type in the PayPal Payments Standard Add-On

Transaction Type-specific Options

When using the PayPal Add-Ons for Gravity Forms, you can set various transaction types depending on your needs such as Products and Services, Subscription, and Donations. The most common, Products and Services, is used to sell one-time purchases of physical or digital products.

Transaction Type-specific Options

If you select Products and Services from the Transaction Type drop down, the option below will appear.

The Payment Amount field denotes which field will be used for the payment amount. It can be set to Form Total or an additional field that you have configured.

If you need more information on configuring feeds within the PayPal Payments Standard Add-On, review our article on Creating a Feed for the PayPal Payments Standard Add-On.

Quiz Scoring

Quiz Scoring

IntroductionPercentage score calculation Normal Scoring RulesWeighted Scoring RulesTotal score available for a question0% quiz floorHidden question scoringExamplesExample 1: Weighted scoring with a single choice questionExample 2: Weighted scoring with a multi-choice questionExample 3: Negative score for a wrong answer

Introduction

Normal scoring is a simplistic right or wrong grade for each question.

Weighted scoring allows you to specify different scores for each possible answer. For example, you could make one question worth 3 points for the correct answer, or even make wrong answers be a negative score. This affects how percentage score is calculated, so we have added some examples here to show you how it works.

Caveat: Quiz results are calculated dynamically on request, As such, if you change the correct answer (or the weighted score) on a question, all past Quiz Results will be re-calculated when viewed again, which may vary from what was previously presented in the results dashboard, or to the user at the time they completed the quiz.

Percentage score calculation

The percentage score for a quiz using is calculated as follows:

Score for all Answer(s) Chosen / Sum of Total Score Available for all questions

Scores received and total score available for each question is calculated, and then converted to a percentage.

How each of these components is calculated depends upon the scoring method used in your Quiz field.

Normal Scoring Rules

Under normal (non-weighted) scoring, a correct answer (the answer identified in settings with the checkmark/tick) counts as 1, and an incorrect answer as 0. As such, the percentage score will be the percentage of correct answers.

Questions hidden by conditional logic at the time of quiz submission will still be counted in scoring calculations. They register as an incorrect answer.

If a multiple choice question has multiple correct answers, then a user must select them all for the question to be presented as correct (e.g. in the results summary).

Weighted Scoring Rules

Total score available for a question

This total score available for a weighted score quiz question depends on the Quiz field type used. calculated as follows:

For a single-choice Quiz field type, the total score available is defined as:Value of the highest scored answer.

For a multi-choice Quiz field type, the total possible is different: Sum of all positive scores assigned to answers.

This means that for a single answer question with multiple scores, the user may get 100%, even when selecting an incorrect answer, if that incorrect answer was weighted with the same (or greater) score as the correct answer.

The 「correct」 answer marker has no affect on weighted scoring, but does affect the display of correct and not-correct summaries in the quiz results.

0% quiz floor

Percentage score for a quiz can never be less than 0%, and will be rounded up to 0.

Hidden question scoring

Questions hidden by conditional logic at the time of quiz submission will still be counted in scoring calculations. They register as an incorrect answer.

Examples

Here are some examples to clarify how these rules interact.

Example 1: Weighted scoring with a single choice question

A radio button question (only one answer permitted) has the following answers, where weighted scoring has been used to establish a preferred correct answer, and a partially correct answer.

(A) Option A (3 points) (correct answer)(B) Option B (1 points) (correct answer) (C) Option C (0 points)

If a user chooses A, they are marked as correct, and receive a percentage score of 100% (3/3). If a user chooses B, they are marked as correct, and receive a percentage score of 33% (1/3).If a user chooses C, they are marked as incorrect, and receive a score of 0%.

Example 2: Weighted scoring with a multi-choice question

A checkbox question (multiple answers permitted) has the following answers, where weighted scoring has been used to establish a preferred correct answer, and a partially correct answer.

(A) Option A (3 points) (correct answer)(B) Option B (1 points) (correct answer) (C) Option C (0 points)

If a user chooses A, they are marked as incorrect (did not specify all correct answers), and receive a percentage score of 75% (3/4). If a user chooses B, they are marked as incorrect (did not specify all correct answers), and receive a percentage score of 25% (1/4).If a user chooses A and B, they are marked as correct and receive a percentage score of 100% (4/4).If a user chooses C, they are marked as incorrect, and receive a score of 0%.

Note: If a user chose all 3 answers in this example, they would also receive a percentage score of 100%, though the quiz results for that question would consider this incorrect (a non-correct answer was selected). As such, for checkbox questions it can sometimes be worth setting up the incorrect answers as negatively scored. For example, if Option D was scored as -3, than selecting all 4 options would get you only 67%. This will depend on how you want your quiz questions to be marked.

Example 3: Negative score for a wrong answer

A quiz has two radio button questions (only one answer permitted) has the following answers, where weighted scoring has been used to establish a penalty for the wrong answer:

Question 1(A) Option A (3 points) (correct answer)(B) Option B (-1 point)

Question 2(A) Option A (1 point) (correct answer)(B) Option B (-1 point)

If a user chooses A and A, they would receive a quiz percentage score of 100% (4/4). This is because negative scores do not affect the total score available for the question, so the quiz possible total is 3+1=4. If a user chooses A and B, they would receive a percentage score of 50% (2 out of possible 4).If a user chooses B and B, they would receive a percentage score of 0%. Even with negative scoring, a quiz result will never be less than 0%.

Promotion and Sponsorship

Promotion and Sponsorship

Can I follow Gravity Forms on Twitter or Facebook?Would you give me a license to be used as a prize?Can you sponsor my local WordCamp?

Can I follow Gravity Forms on Twitter or Facebook?
If you would like to follow us on Twitter, follow @rocketgenius and on Facebook, we can be found at Facebook.com/rocketgenius. Also, feel free to follow our founders on Twitter under @carlhancock, @kflahaut, and @acancado.
Would you give me a license to be used as a prize?
If we do not have a previous relationship with you or your company, we will not provide licenses to be used as prizing. Please do not contact us regarding this at this time. We will update this question if our policy should change.
Can you sponsor my local WordCamp?
We have historically supported many of the WordPress and WordPress community events. Obviously we cannot support every one, but feel free to contact us (at least 2 months in advance) using our Contact Us form, and include all details relating to the location, organizers, your expected turnout and what you are looking for from Gravity Forms.

Radio Buttons Field CSS Selectors

Radio Buttons Field CSS Selectors

ListChoicesLabelsInputs

List
Unordered list used to structure all of the individual list choices

example: standard multiple-choice list (ul) – applies to all forms
body .gform_wrapper .gform_body .gform_fields .gfield .gfield_radio {border: 1px solid red}

example: standard multiple-choice list (ul) – applies just to form ID #1
body #gform_wrapper_1 .gform_body .gform_fields .gfield .gfield_radio {border: 1px solid red}

example: standard multiple-choice list (ul) – applies just to specific multiple-choice list (based on the unique parent element ID – replace 「XX_X」 with your actual element ID)
body .gform_wrapper .gform_body .gform_fields #field_XX_X.gfield .gfield_radio {border: 1px solid red}

Choices
Individual list choices

example: standard multiple-choice list item (li) – applies to all forms
body .gform_wrapper .gform_body .gform_fields .gfield .gfield_radio li {border: 1px solid red}

example: standard multiple-choice list item (li) – applies just to form ID #1
body #gform_wrapper_1 .gform_body .gform_fields .gfield .gfield_radio li {border: 1px solid red}

example: standard multiple-choice list item (li) – applies just to specific multiple-choice list item (based on the unique parent element ID – replace 「XX_X」 with your actual element ID)
body .gform_wrapper .gform_body .gform_fields #field_XX_X.gfield .gfield_radio li {border: 1px solid red}

Labels

example: standard multiple-choice label – applies to all forms
body .gform_wrapper .gform_body .gform_fields .gfield .gfield_radio li label {border: 1px solid red}

example: standard multiple-choice list label – applies just to form ID #1
body #gform_wrapper_1 .gform_body .gform_fields .gfield .gfield_radio li label {border: 1px solid red}

example: standard multiple-choice label – applies just to specific multiple-choice list item (based on the unique parent element ID – replace 「XX_X」 with your actual element ID)
body .gform_wrapper .gform_body .gform_fields #field_XX_X.gfield .gfield_radio li label {border: 1px solid red}

Inputs

example: standard multiple-choice input (radio button) – applies to all forms
body .gform_wrapper .gform_body .gform_fields .gfield .gfield_radio li input[type=radio] {border: 1px solid red}

example: standard checkbox input (radio button) – applies just to form ID #1
body #gform_wrapper_1 .gform_body .gform_fields .gfield .gfield_radio li input[type=radio] {border: 1px solid red}

example: standard checkbox input (cradio button) – applies just to specific multiple-choice inputs (based on the unique parent element ID – replace 「XX_X」 with your actual element ID)
body .gform_wrapper .gform_body .gform_fields #field_XX_X.gfield .gfield_radio li input[type=radio] {border: 1px solid red}

{quiz_score} Merge Tag

{quiz_score} Merge Tag

SummaryUsageModifiersNotes

Summary

Displays the total score for the quiz or for a specific quiz question. The score is affected by weighted scoring.

Usage

{quiz_score}

{quiz_score:id=x}

Modifiers

:id

The ID of the specific quiz question

Notes

Quiz and Survey related merge tags can only be used in confirmations and notifications.For more information, refer to our Quiz Add-On documentation.

Post Image

Post Image

SummaryCommon SettingsGeneral SettingsMerge TagsUsageModifiers

Note: This field cannot be used with the Advanced Post Creation Add-On. If utilizing that plugin for post creation, use a File Upload field instead.

Summary

The Post Image field allows users to upload an image that is added to the Media Library and Gallery for the post that is created. It is available under the Post Fields section within the form editor. This field works in tandem with the other Post fields to allow you to create a form that can generate post data from a user submission. The Post Image allows users to upload the following filetypes: GIF, JPG, and PNG.

Unlike regular file uploads, files uploaded with this field type are not deleted from the WordPress Media Library when Gravity Forms entries are deleted.

Post Image field as displayed in the Field Library

Post Image field as displayed in the Form Editor.

Common Settings

This field uses only common field settings for the Appearance and Advanced settings. For a description of each of the common field settings, refer to this article. Below you will find description of specialty settings that are particular to this field.

General Settings

SettingDescriptionImage MetadataSelect one or more image metadata fields to be displayed along with the image upload field. They enable users to enter additional information about the uploaded image.Set as Featured ImageCheck this option to set the image uploaded as the Featured Image for the generated post.

Merge Tags

For more information on the use of merge tags, refer to these articles.

Usage

{Field Name:2:modifier}

Modifiers

By default, the tag outputs the URL of the image.

ModifierDescription:titleDisplays the image title.:captionDisplays the image caption.:descriptionDisplays the image description.:altDisplays the alternative text.

Post Custom Field

Post Custom Field

SummaryCommon SettingsGeneral SettingsNotesInput MaskMerge TagsUsageModifiers

Note: This field cannot be used with the Advanced Post Creation Add-On. If utilizing that plugin for post creation, use a standard field type instead.

Summary

The Post Custom Field allows users to submit data that is then used to populate a custom field value for a post. This field works in tandem with the other Post fields to allow you to create a form that can generate post data from a user submission. It is available under the Post Fields section within the form editor.

Post Custom field as displayed in the Field Library

Post Custom field as displayed in the Form Editor.

Common Settings

This field uses only common field settings for the Appearance and Advanced settings. For a description of each of the common field settings, refer to this article. Below you will find description of specialty settings that are particular to this field.

General Settings

SettingDescriptionField TypeSelect the field type you wish for this Post Custom Field to behave as. See note 1.Custom Field NameChoose from available existing custom fields, or enter a new custom field name.Create Content TemplateUse merge tags to define the content of this field. See this article for more information.

Notes

1. The Post Custom Field will assume the properties and options of the selected field type. For example, if Single Line Text is selected, the Maximum Characters and Enable Password Input options would become available for this field.

Input Mask

Single Line Text and Post Custom Field are the only fields that have the Input Mask setting. You can learn more about input masks in this article.

Merge Tags

For more information on the use of merge tags, refer to these articles.

Usage

{Field Name:2}

Modifiers

This merge tag does not have any modifiers.

Print

Print

Choosing the bulk print option from the Entry List view, or the Print button from the Entry Detail view, will show a print preview for your entry (or entries if bulk printing), displaying all the form field names as well as values that have been entered.

Poll

Poll

SummaryCommon SettingsPoll Specific SettingsMerge TagsUsageModifiers

Summary

The Poll field is available when using the Polls add-on. This field will allow you to create polls to collect data from users. It is available under the Advanced Fields section within the form editor. Please note that you will need to have the Polls add-on installed and activated before this field type is made available.

Poll field as displayed in the Field Library

Poll field as displayed in the Form Editor.

Common Settings

This field uses only common field settings for the Appearance and Advanced settings. For a description of each of the common field settings, refer to this article. Below you will find description of specialty settings that are particular to this field.

Poll Specific Settings

SettingDescriptionDescriptionAdds text that can be displayed with the poll question, and its appearance is controlled by the description placement option under the Appearance settings tabPoll QuestionWithin this field, you will provide the question that you would like to ask the user.Poll TypeAllows you to select how the poll is displayed.For Poll Types see note 1.Bulk Add / Predefined ChoicesClicking the Bulk Add / Predefined Choices allows you to select a category and customize the predefined choices or paste your own list to bulk add choices. See note 2.Enable 「other」 choiceCheck this option to add a text input as the final choice of your poll. This allows the user to specify a value that is not a predefined choice.Randomize order of choicesRandomizes the choices when displayed to the user.

Poll Types: Drop Down; Radio Button; Checkbox (multi-select)See this article for more information.

Merge Tags

For more information on the use of merge tags, refer to these articles.

Usage

{Field Name:2}

Notes:

The first of these merge tag parameters is optional and is simply the field name for easier identification.The second parameter defines the field ID within the form. In the example above, it would be field ID 2.If accessing a specific option within the field, it can be accessed by separating the values with a period. For example, 2.3 would be the value of the 3rd choice from field ID 2.

Modifiers

This field does not have any modifiers.