Announcement

Collapse
No announcement yet.

How do I change the order in which form fields are selected?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I change the order in which form fields are selected?

    This question is about the form you get when you post a new thread.

    Suppose I wanted to add a field between the title field and the WYSIWYG editor, named "pet_name". I would have to add a line like this, between the title field and the editor:

    Code:
    <input type="text" class="bginput" name="pet_name" value="">
    That works for me, however... when I am in the title field, and I press tab to switch over to the pet_name field, it switches to the message editor instead.

    It seems to have something to do with javascript. But that is rocketscience to me.

    Help would be greatly appreciated.
    Last edited by WiZDoM; Mon 15 Nov '04, 8:26am.

  • #2
    That is because of the tabindex attributes of the input fields. For example, the tabindex for the title field in the newthread template is highlighted in red:

    Code:
    			<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" [color=red]tabindex="1"[/color] /></td>
    You would need to reorder the tabindexes appropriately.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X