
I need help customizing a javascript snippet.
$10-30 USD
Paid on delivery
I don't know how to customize the following snippet for my form: [login to view URL]
/**
* Gravity Perks // GP Populate Anything // Trigger Population on Button Click
*
* Instead of automatically populating fields when an input is changed, trigger the population when a button is clicked.
*
* Instructions:
* 1. Add snippet to form using [login to view URL]
* 2. Customize inputButton and optionally buttonSelector to match your form the desired field
* 3. Add HTML field to your form and add the following code to the HTML field:
* <button class="trigger-gppa">Click Me</button>
*/
var inputSelector = '#input_FORMID_FIELDID';
var buttonSelector = '.trigger-gppa';
function disableListener() {
$(inputSelector).data('gppaDisableListener', true);
}
disableListener();
$(document).on('gppa_updated_batch_fields', function( event, formId, fieldIds ) {
disableListener();
});
$('#gform_GFFORMID').on('click', buttonSelector, function(event) {
// Prevent submission of form when this button is clicked
[login to view URL]();
$(inputSelector)
.data('gppaDisableListener', false)
.trigger('forceReload');
});
Project ID: #36635833
About the project
10 freelancers are bidding on average $30 for this job
I have some queries regarding the specifications of the project. Could we please have a word? My Skills: Gravity Forms, HTML, WordPress, JavaScript and jQuery / Prototype
What you need to do is change that '#input_FORMID_FIELDID'; value inside the quotes to the id attribute of the text field. I can walk you through it on messaging, or you can send me the file, I'll do it and I can send More
Respected My name is Farheen F, I am interested in I need help customizing a javascript snippet.. I and my team have completed more than 500+ website development projects in the last 10 years. We have expertise in cr More
Hi there! My name is ayham, and I'm an experienced computer engineer with a wide variety of professional experiences. After four years of working on application design, development, testing and deployment, I have gaine More
Hi, I have checked your project description carefully and I can solve your issue successfully. I have already worked on this kind of issue before. Let's discuss the details anyways. Regarding the time line and cost, we More