/    Sign up×
Community /Pin to ProfileBookmark

Newbie needs assistance – Urgent

Good Morning All –
I’ve got an existing form that basically allows internal people to request Manpower assistance from other divisions within our company. I have been asked to update the script to perform the following:

In the drop down box if Senior Technical Enginerr or Certification Team is selected, the Cost Center box automatically displays a “N/A”. Currently this field is required to submit the form. There are a total of 7 different groups within the drop down box, and only the two listed above are affected.

I did not initially create this form, I have merely been asked to perform this update.

Thank You for any help you can offer. I’m a wet behind the ears newbie here.

Regards …. Kristie ?

to post a comment
JavaScript

7 Comments(s)

Copy linkTweet thisAlerts:
@Warren86Dec 01.2004 — <HTML>

<Head>

<Script Language=JavaScript>

function updateCC(isForm,isIndex){

if (isIndex == 1 || isIndex == 2)
{isForm.CostCenter.value = "N/A"}
else {isForm.CostCenter.value = ""}
}


</Script>

</Head>

<Body>

<Form name='Form1'>

Cost Center <input type=text size=20 name='CostCenter'><br><br>

<Select onChange="updateCC(Form1,this.selectedIndex)">

<option value='null' selected> Make a Selection </option>

<option value='Senior Technical Engineer' > Senior Technical Engineer </option>

<option value='Certification Team' > Certification Team </option>

<option value='Some Other Group' > Some Other Group </option>

</Select>

</Form>

</Body>

</HTML>
Copy linkTweet thisAlerts:
@MissknkcauthorDec 01.2004 — Hello All -

First I'd like to thank Warren86 for the code, but I'm having an issue determining where in my form this code should be placed. I've tried in two different locations and it does not appear to be working correctly.

I am attaching a txt copy of my form. Any additional assistance would really be great !

Thank You again

Kristie ?

[upl-file uuid=8407cc9f-7acf-44b5-9e0d-87e34ea4f74f size=12kB]manpower_request1.txt[/upl-file]
Copy linkTweet thisAlerts:
@Warren86Dec 01.2004 — Try this, your select list for manpower distribution was calling another function that doesn't exist.

[upl-file uuid=154b2d2b-71c4-4506-a0d3-d8e6804834e7 size=12kB]manpower_request1.txt[/upl-file]
Copy linkTweet thisAlerts:
@7studDec 01.2004 — I'm just wondering: how many people(besides Warren86) do you think are willing to be your personal assistant and do your job for you without getting paid??
Copy linkTweet thisAlerts:
@Warren86Dec 01.2004 — No. My error. I didn't take note of the placement within the list of the two items of interest.

[upl-file uuid=785dcbbb-7430-4aa8-95aa-3ff09c2c1a65 size=12kB]manpower_request1.txt[/upl-file]
Copy linkTweet thisAlerts:
@MissknkcauthorDec 01.2004 — Hi Warren86,

Thank you very much for your assistance. As I said before I'm a real newbie at this and I was asked to make this update quickly. I'll keep this as a point of reference perhaps for another time I'm asked to update this.

Again, thank you for your help.

Have a good day ..... Kristie ?
Copy linkTweet thisAlerts:
@Warren86Dec 01.2004 — You're welcome.
×

Success!

Help @Missknkc 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.18,
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,
)...