This topic is locked

Changing the look and feel of the 'Add Form'

4/1/2005 11:08:27 PM
ASPRunnerPro General questions
A
apaull author

Hi all,
I'm trying to build a form that lets trade customers sign up for promotional material that will be sent out by my client. The form asks for information such as name, address, phone, email, etc, as well as what material they'd like. When they hit the submit button three things are meant to happen: the information gets added to a database, an email is sent to the client with their entered data, and the user is sent to a thank you page.
One of the things I'm struggling with is just trying to incorporate the form into the current design of the website - I'd like to be able to move form objects around so they're not just in a straight list which seems to be the standard default with ASPRunner.
Here's a non working mockup to give you an idea...
http://www.tasmaniansalmon.com.au/contact_trade.htm
I've played around with the CSS so I can control font, colours, sizes, etc so thats no problem, but what I can't seem to achieve is moving the items around since they're all made dynamically.
Has anyone had any experience of changing this aspect of the outputted pages?
Cheers, and thanks,
Adam Paull

Sydney, Australia

Sergey Kornilov admin 4/3/2005

Adam,
you can move fields on the Add page.
By default ASPRunner starts new row <tr> in table for each field on Edit/Add pages. If you remove some <tr> & </tr> tags you will be able to achieve layout that you looking for.
Take a look at the following code snippet:

if GetEditFormat(sFieldName) <> EDIT_FORMAT_HIDDEN then

      Response.Write vbCRLF & "<tr><td class=shade>"

  Response.Write Label(sFieldName) & " "

      Response.Write "</td><td>"

  end if


Removing <tr> will leave this edit field in the same row.
I hope this helps.