I need help customizing a javascript snippet.

Closed Posted 4 months ago Paid on delivery
Closed 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');

});

JavaScript WordPress jQuery / Prototype HTML Gravity Forms

Project ID: #36635833

About the project

10 proposals Remote project Active 3 mos ago

10 freelancers are bidding on average $30 for this job

ShrineWeb

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

$10 USD in 10 days
(145 Reviews)
6.8
urgentprogrammer

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

$10 USD in 1 day
(61 Reviews)
5.4
farheenfati1100

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

$20 USD in 7 days
(0 Reviews)
0.0
ayhamshames

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

$20 USD in 7 days
(0 Reviews)
0.0
mhtengaten

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

$20 USD in 7 days
(0 Reviews)
0.0
rowandeep

Hi, I am a JavaScript expert and I am working since last 6 years in software development industry. I have worked with multinational companies and I am currently working at US based healthcare analytics company as a se More

$10 USD in 2 days
(0 Reviews)
0.0