/    Sign up×
Community /Pin to ProfileBookmark

Functions – Slowing Down Form Entries??

I have created an evaluation form used in a call center that the evaluator uses to grade a call. I am using dropdowns yes/no for a series of 12 questions. If the selection is yes a value is written to a score box, if no a different value is written to the score box. Each question has different values and they total at the bottom of the page.

As the user fills out the form it gets slow as it get towards the end. I have used a function (see code example) to calculate each question/entry. Also the user wants to make sure the scores can’t be changed before sending the form to the server. I need to know how to speed up the form entry response as well as protect the scores from being changed. Any help is greatly appreciated in advance

function CM1func(){
if (document.form1.CM1.value == “Yes”) {
document.form1.CM1score.value = 2;
} else if (document.form1.CM1.value == “NA”) {
document.form1.CM1score.value = 2;
} else if (document.form1.CM1.value == “NO”) {
document.form1.CM1score.value = 0 ;
} else {
document.form1.CM1score.value = ” “;

}

}

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Chamark spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...