Jotform Integration with Wordpress and Paypal with Custom Script

  • Status Closed
  • Budget $10 - $30 USD
  • Total Bids 2

Project Description

I need to troubleshoot and fix a custom function I need on a client's wordpress website. I need to make this form:

[url removed, login to view]

To use the below script successfully be used in wordpress either through an html insert plugin, or any other way.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

(function () {

var limit = 10, // Number of words beyond which an extra charge per word applies (edit accordingly)

bizRate = [url removed, login to view], // Business charge for 10 words (edit accordingly)

nonBizRate = [url removed, login to view], // Non-business charge for 10 words (edit accordingly)

chargePerExtra = [url removed, login to view], // Charge for each word beyond limit (edit accordingly)

photosCharge = [url removed, login to view], // Charge for photos

// *** EDIT NOTHING BELOW! ***

bizYesNo = [url removed, login to view]("q26_isThis"), // Business ad?

adText = [url removed, login to view]("input_11"), // Text area

wordCount = [url removed, login to view]("input_11-limit"), // Word counter below Ad Text

photosYesNo = [url removed, login to view]("q25_doYou"), // Photos included?

duration = [url removed, login to view]("input_20"), // Number of weeks

total = [url removed, login to view]("input_24_donation"); // Box containing total

bizYesNo[0].onclick = bizYesNo[1].onclick = [url removed, login to view] =

photosYesNo[0].onclick = photosYesNo[1].onclick = [url removed, login to view] = calculate;

function AdText() {

var w = parseFloat([url removed, login to view]),

x = w - limit;

if (bizYesNo[0].checked && w > 0 && w 0 && w limit) {

return bizRate + x * chargePerExtra;

} else if (bizYesNo[1].checked && w > limit) {

return nonBizRate + x * chargePerExtra;

} else {

return 0;

}

}

function PhotosYesNo() {

if (photosYesNo[0].checked) {

return photosCharge;

}

return 0;

}

function weeks() {

var options = [url removed, login to view],

selected = [url removed, login to view],

week = options[selected].index;

for (var i = 0, j = [url removed, login to view]; i < j; i++) {

if (week === i) {

week = i;

}

}

return week;

}

function calculate() {

if ((bizYesNo[0].checked || bizYesNo[1].checked) && adText !== "" &&

(photosYesNo[0].checked || photosYesNo[1].checked) && weeks() !== 0) {

[url removed, login to view] = ((AdText() + PhotosYesNo()) * weeks()).toFixed(2);

}

if ([url removed, login to view] === "[url removed, login to view]") {

[url removed, login to view] = "";

}

}

[url removed, login to view] = function () {

[url removed, login to view]();

};

})();

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Get free quotes for a project like this
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online