We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Form Topic Title
Topic Started: Aug 28 2015, 06:50 AM (279 Views)
JamieMN
Member
[ *  *  * ]
Board Address: www.modernnations.com
Board Software: ZetaBoards
Description: I'd like that when the form below is submitted, the topic title takes information that is given on the form in the format:

[TYPE][GOVERNMENT NAME] PRODUCT

What would I put as the topic title to have this information added?

Code:
 
<form id='generic_form'>
<div class='category'>
<table class='cat_head'>
<tr>
<td><h2 style='text-align:center'>Create an Order</h2></td>
</tr>
</table>
</div>

<table>
<tr>
<td> </td>
</tr>
</table>

<table id='form_spec'>
<tr>
</h2></th>
</tr>
<tr>
<td>Type:</td>
<td>
<select>
<option>PURCHASE</option>
<option>TRANSFER</option>
<option>SCRAP</option>
</select>
</td>
</tr>
<tr>
<td>Government Name:</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>Transferring to: (Transfers Only)</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>Product:</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>Unit Cost: (USD)</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>Total Cost: (USD)</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>Cost Source:</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>Are you at War?:</td>
<td>
<select>
<option>Yes</option>
<option>No</option>
</select>
</td>
</tr>
<tr>
<td>Do you wish to reduce production time by half?:</td>
<td>
<select>
<option>Yes</option>
<option>No</option>
</select>
</td>
</tr>
<tr>
<td>Completion Date: (DD/MM/YYYY)</td>
<td><input type='text' /></td>
</tr>
<tr>
<td colspan='2' id='send_form'><button type='submit'>Send Order</button></td>
</tr>
</table>

</form>

<style type='text/css'>
/* <![CDATA[ */
#form_spec tr td:first-child {
font-weight: bold;
width: 30%;
}
#form_spec input, #form_spec textarea {
width: 500px;
}
/* ]]> */
</style>

<script type='text/javascript'>
var form_script = {
form_id: $('#generic_form'),
status_id: $('#send_form'),
specific_id: $('#form_spec'),
enable_guests: false,
pm: {
enabled: false, // Does not work for guests
user: "Reid", // 1 user only
title: "New Form From {{user_name}}",
content: "{{form}}"
},
topic: {
enabled: true,
forum_id: 3072958, // 1 id only
title: "TO BE ADDED",
description: "",
content: "{{form}}"
},
statuses: {
not_logged_in: "You must be registered and signed in to use this feature.", // Used if enable_guests: false
first: "Generating Data...",
second: "Creating Nation...",
done: "Nation Created!"
},
submission_formatting: {
separator: ' ',

before_all: '',
after_all: '',

before_question: '[b]',
after_question: '[/b]',

before_response: '[i]',
after_response: '[/i]'
},
possible_elements: 'input, textarea, select' // For the second column of table; .val() must work on it
};
</script>

<script type='text/javascript' src='http://z3.ifrm.com/313/104/0/p366373/form_script.js'></script>
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
Simply edit the form title to be...
Code:
 
[{{1}}][{{2}}] {{3}}
Offline Profile Goto Top
 
JamieMN
Member
[ *  *  * ]
That easy.. I should have known that. xD But thanks Ferby!

Offline Profile Goto Top
 
Roby
Member Avatar
#27

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic