# JAVASCRIPT: Form to plain english

**URL:** https://forum.kirupa.com/t/javascript-form-to-plain-english/232648
**Category:** web dev
**Created:** [July 16, 2007, 5:47pm UTC](https://forum.kirupa.com/t/javascript-form-to-plain-english/232648 "2007-07-16T17:47:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![camargo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/camargo/32/1363_2.png) [@camargo](https://forum.kirupa.com/u/camargo)
#### Post date: [July 16, 2007, 5:47pm UTC](https://forum.kirupa.com/t/javascript-form-to-plain-english/232648/1 "2007-07-16T17:47:31Z")

</div>

Howdy Kirupans!

I’m in the middle of trying to get a form of mine to display its contents in plain English.

[link] [http://www.wirelessinteractive.com/cable/](http://www.wirelessinteractive.com/cable/)

This little application allows someone to enter the specs of a cable they’d like to custom order. They put in the length and quantity, select the connector types, and the type of cable to use. Once all of that is done, the form calculates the cost. No big deal. I also need it to describe the cable in plain English in an order summary.

Now, I built a function that I figured would work out, but I’ve been running into some problems. Take a look:

```auto
var cableDesc0 = document.getElementById("cableQty0").value + " x " + document.getElementById("cableLength0").value + " feet of " + document.getElementById("cableType0").value + " cable with " + document.getElementById("con01").value + " and " + document.getElementById("con02").value + " connectors.";

```

The above is meant to concatenate all the values of the form into a single sentence and call it **cableDesc0**. It would look something like this:

\*\*25 x 15 feet of LMR195 cable with RPTNC Male and RPSMA Female connectors.

\*\*However, that variable declaration throws me an error saying the following:  
\*\*  
Error: document.getElementById(“cableQty0”) has no properties.

\*\*Sorry guys, I know this might be a bit wordy, but any takers on this would be extremely appreciated.
