Log in

Gravity Perks - Copy Cat

Gravity Perks - Copy Cat 1.4.32

Download Gravity Perks - Copy Cat 1.4.32. Allow users to copy the value of one field to another automatically
What does it do?
The Copy Cat perk allows you to configure a checkbox which, when clicked, will copy the values from one field to another. This is particularly useful for situations like specifying a billing and shipping address. There is a good chance the user would desire to enter the same address for both fields. With Copy Cat, you can configure a checkbox to copy the user-entered values from the billing address field to the shipping address field.

This also supports simply copying the value from one field to another after the user has entered a value. For example, the user could enter their first and last name into a field and you could automatically populate this into the Name input on the Credit Card field.

How does it work?
This perk uses Javascript to copy all of the values from one field to another when the configured checkbox is clicked. It supports both single input fields (like the Single Line Text field) and complex input fields (like the Address field).

How do I enable this functionality?
The Copy Cat perk can be activated by adding a specially formatted CSS class to any checkbox field.

copy-{fieldId}-to-{fieldId}

Replace the first {fieldId} with the ID of the field you will be copying from and the second {fieldId} with the ID of the field you will be copying to. This custom class can be added to any Checkbox field via the “CSS Class Name” setting under the Advanced tab.
Author
Eduard
Views
189
Last update
Rating
0.00 star(s) 0 ratings

More resources from Eduard

Latest updates

  1. 1.4.32

    Fixed issue where using a Password field with confirmation as a source field would result in the...
  2. 1.4.31

    Fixed a regression where GPCC may throw a JS error if the class is added to the target field.
  3. 1.4.28

    Fixed an issue where the new gpcc-populated classes may apply on page load.