views:

21

answers:

1

Within MOSS2007, I'm building a custom form (newform2.aspx) for a list, and having a real problem trying to adjust the width of my form fields.

Here is some of the code I'm trying to adjust:

<tr>
  <td colspan="3" style="padding-top:5px; padding-bottom:5px; width:100%; ">DescriptionText<br/>
  <SharePoint:FormField runat="server" id="ff16{$Pos}" ControlMode="New" FieldName="Jobsite" __designer:bind="{ddwrt:DataBind('i',concat('ff16',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Jobsite')}"/>
  </td>
</tr>

I've tried setting DisplaySize within the Form:Field control, and it changes within SharePoint Designer, but when I view the actual page, the box always remains at it's default length.

+1  A: 

Nothing like solving your own question. ;)

I found that wrapping the FormField control in 's in combination with the DisplaySize attribute gave me the control I needed to format the fields properly.

Oc3LoT