|
[ C ] Request Form Submission
|
|
Topic Started: Feb 24 2014, 05:59 PM (423 Views)
|
|
Kankuro
|
Feb 24 2014, 05:59 PM
Post #1
|
- Posts:
- 1,092
- Group:
- Members
- Member
- #608,916
- Joined:
- May 25, 2013
- I'm Browsing With
- Chrome
- My Board URL
- http://gamesandanime.net/index/
- Latest Design
- http://if.invisionfree.com/topic/5195959/
|
Board Address: http://w11.zetaboards.com/Guardians_of_the_Orb/index/ Board Software: ZetaBoards Description: Would it be possible to edit the code below to list all users on the board instead of adding options?
- Code:
-
<form id='generic_form'> <div class='category'> <table class='cat_head'> <tr> <td><h2 style='text-align:center'>Awards Request</h2></td> </tr> </table> </div> <table id='form_spec'> <tr> <th colspan='2'><center><h2><font color="FF0000">Please fill out the fields below</font></h2><h3><a href="Award Guideline URL Here">Award Request Guidelines</a></h3></center></th> </tr> <tr> </tr> <tr> </tr> <tr> <td>Award</td> <td> <select> <option>-Selection-</option> <option>Award Names Here</option> </select> </td> </tr> <tr> <td>Why Should You Get This Award?</td> <td><textarea rows='10'></textarea></td> </tr> <tr> <td colspan='2' id='send_form'><button type='submit'>Submit Request</button></td> </tr> </table>
</form>
<style type='text/css'> /* <![CDATA[ */ #form_spec tr td:first-child { font-weight: bold; color: #5CC3FE; 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, user: "NONE", title: "Award Request From {{user_name}}", content: "{{form}}" }, topic: { enabled: true, forum_id: 4027130, // 1 id only title: "Award Request From {{user_name}}", description: "", content: "{{form}}" }, statuses: { not_logged_in: "You must be registered and signed in to use this feature.", // Used if enable_guests: false first: "Gathering data...", second: "Sending request...", done: "Your Request Has Been Sent!" }, submission_formatting: { separator: ' ',
before_all: '', after_all: '',
before_question: '[color=#5CC3FE][b]', after_question: '[/color][/b]',
before_response: '', after_response: '' }, 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>
<script type="text/javascript"> function showSpoiler(obj) { var inner = obj.parentNode.getElementsByTagName("div")[0]; if (inner.style.display == "none") inner.style.display = ""; else inner.style.display = "none"; } </script> <div class="category"> <table class="cat_head"> <tr><td><h2>View Awards</h2></td></tr></table> <div class="spoiler"> <button type="button" onclick="showSpoiler(this);" value="Submit">Show/Hide</button> <div class="inner" style="display:none;"> <table><font face="Verdana, Verdana" size="2" color="#717171"> <tr><td><p><img src="Award Image URL Here" alt=""> • <font color="#ff0000"><b>Award Name Here:</b> Award Description Here </font></p></td></tr> </table> </div></div></div>
The coding below is what I want to change to list all users on the board instead of adding options But I want it to remain a drop down box.
- Code:
-
<tr> <td>Award</td> <td> <select> <option>-Selection-</option> <option>Award Names Here</option> </select> </td> </tr>
|
|
|
| |
|
DaPizzaMan
|
Feb 25 2014, 04:36 PM
Post #2
|
#TeamSupport
- Posts:
- 5,109
- Group:
- Support Team
- Member
- #386,619
- Joined:
- September 28, 2010
- I'm Browsing With
- Safari · Chrome
- My Board URL
- http://s4.zetaboards.com/zbThemes/index/
|
If you want it to remain a drop box and not an input field, then this would not be possible.
|
|
|
| |
|
Kankuro
|
Feb 26 2014, 09:22 PM
Post #3
|
- Posts:
- 1,092
- Group:
- Members
- Member
- #608,916
- Joined:
- May 25, 2013
- I'm Browsing With
- Chrome
- My Board URL
- http://gamesandanime.net/index/
- Latest Design
- http://if.invisionfree.com/topic/5195959/
|
- DaPizzaMan
- Feb 25 2014, 04:36 PM
If you want it to remain a drop box and not an input field, then this would not be possible. What do you mean input field? Like a box where you type a name and search for a member or a box where you type a name and select a member from a menu?
|
|
|
| |
|
DaPizzaMan
|
Feb 27 2014, 04:33 PM
Post #4
|
#TeamSupport
- Posts:
- 5,109
- Group:
- Support Team
- Member
- #386,619
- Joined:
- September 28, 2010
- I'm Browsing With
- Safari · Chrome
- My Board URL
- http://s4.zetaboards.com/zbThemes/index/
|
- kankuro865
- Feb 26 2014, 09:22 PM
- DaPizzaMan
- Feb 25 2014, 04:36 PM
If you want it to remain a drop box and not an input field, then this would not be possible.
What do you mean input field? Like a box where you type a name and search for a member or a box where you type a name and select a member from a menu? Well, in this case, neither/the former. The former would require manual work on your part as well, though. So in the code you would have to supply the names. It would be easiest if there was a box in which they typed any name and the form was sent in that fashion. You would have to hope/assume they don't spell it wrong or any of that. Maybe it would be even better if you told them to supply the URL to the user's profile page to avoid confusion.
|
|
|
| |
|
Kankuro
|
Feb 28 2014, 01:44 AM
Post #5
|
- Posts:
- 1,092
- Group:
- Members
- Member
- #608,916
- Joined:
- May 25, 2013
- I'm Browsing With
- Chrome
- My Board URL
- http://gamesandanime.net/index/
- Latest Design
- http://if.invisionfree.com/topic/5195959/
|
- DaPizzaMan
- Feb 27 2014, 04:33 PM
- kankuro865
- Feb 26 2014, 09:22 PM
- DaPizzaMan
- Feb 25 2014, 04:36 PM
If you want it to remain a drop box and not an input field, then this would not be possible.
What do you mean input field? Like a box where you type a name and search for a member or a box where you type a name and select a member from a menu?
Well, in this case, neither/the former. The former would require manual work on your part as well, though. So in the code you would have to supply the names. It would be easiest if there was a box in which they typed any name and the form was sent in that fashion. You would have to hope/assume they don't spell it wrong or any of that. Maybe it would be even better if you told them to supply the URL to the user's profile page to avoid confusion. Fair enough. I was just trying to see if it was possible to make it more convenient for everybody. I didn't think about the URL though, thanks for that. I guess that's what I'll do.
|
|
|
| |
|
Moonface
|
Mar 1 2014, 09:17 AM
Post #6
|
- Posts:
- 8,583
- Group:
- Support Team
- Member
- #133,038
- Joined:
- October 17, 2006
- I'm Browsing With
- Chrome
- My Board URL
- http://universalgaming.net
|
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.
|
|
|
| |
| 1 user reading this topic (1 Guest and 0 Anonymous)
|