Could you please look at the code output for this web to case form. Currently, web visitors do not even have to fill in any info and simply click submit and the form is submitted and it creates a blank case. I need assistance adding the proper code to this to make all fields required, with the exception of phone and company name. This matter is urgent, the form is currently on site and there are a ton of cases being generated and assigned improperly and also many of these are creating blank cases. SF keeps telling me to go to web developer to add this but I need to provide the code ready to publish.
thank you.
Code:
<!-- ---------------------------------------------------------------------- -->
<!-- NOTE: Please add the following <META> element to your page <HEAD>. -->
<!-- If necessary, please modify the charset parameter to specify the -->
<!-- character set of your HTML page. -->
<!-- ---------------------------------------------------------------------- -->
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
<!-- ---------------------------------------------------------------------- -->
<!-- NOTE: Please add the following <FORM> element to your page. -->
<!-- ---------------------------------------------------------------------- -->
<form action="https://www.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8" method="POST">
<input type=hidden name="orgid" value="00DA0000000YuuV">
<input type=hidden name="retURL" value="http://www.ndspro.com/about-us/contact-us/thank-you/
">
<!-- ---------------------------------------------------------------------- -->
<!-- NOTE: These fields are optional debugging elements. Please uncomment -->
<!-- these lines if you wish to test in debug mode. -->
<!-- <input type="hidden" name="debug" value=1> -->
<!-- <input type="hidden" name="debugEmail" -->
<!-- value="edwardcastro@ndspro.net"> -->
<!-- ---------------------------------------------------------------------- -->
<label for="company">Company</label><input id="company" maxlength="80" name="company" size="20" type="text" /><br>
<label for="name">Contact Name</label><input id="name" maxlength="80" name="name" size="20" type="text" /><br>
<label for="email">Email</label><input id="email" maxlength="80" name="email" size="20" type="text" /><br>
<label for="phone">Phone</label><input id="phone" maxlength="40" name="phone" size="20" type="text" /><br>
ContactType:<select id="00NG0000008UjZc" name="00NG0000008UjZc" title="ContactType"><option value="">--None--</option><option value="Contractor">Contractor</option>
<option value="Manufacturer's Rep">Manufacturer's Rep</option>
<option value="NDS Distributor">NDS Distributor</option>
<option value="Other">Other</option>
<option value="Specifier">Specifier</option>
</select><br>
<label for="recordType">Case Record Type</label><select id="recordType" name="recordType"><option value="">--None--</option><option value="012G0000000j8oP">Credit Inquiries</option>
<option value="012G0000000j8oU">Distributor Lookup</option>
<option value="012G0000000j8oe">Miscelaneous</option>
<option value="012G0000000j8lz">Product Technical Question</option>
<option value="012G0000000j8te">Quotes & Pricing</option>
<option value="012G0000000j8lu">RMA Requests/Product Issues</option>
</select><br>
Distributor Request Location:<input id="00NG0000008UfmS" maxlength="50" name="00NG0000008UfmS" size="20" type="text" /><br>
<label for="subject">Subject</label><input id="subject" maxlength="80" name="subject" size="20" type="text" /><br>
<label for="description">Description</label><textarea name="description"></textarea><br>
<input type="hidden" id="external" name="external" value="1" /><br>
<input type="submit" name="submit">
</form>
thank you,
I am not familiar with Joomla, but at the core it doesn't really matter.
Ultimately, the Web To Case page is comprised of 2 parts: the servlet to which you're submitting the form, and the inputs on the page. The name of the inputs are what decide how the servlet processes them.
If you're using Joomla to render the fields on the page and make them required, then great, as long as the form submits itself to the same servlet and the input fields are named exactly as they are in the sample code. Perhaps this wiki page will tell you how to make the fields required in a Joomla environment.