Results 1 to 6 of 6

Thread: custom form fields

  1. #1
    Join Date
    Dec 2007
    Posts
    19

    Default custom form fields

    Could someone tell me the process involved in adding a custom field (tel number) to the add a listing form. Would it be as simple as just adding the field to the database and then adding this field to the form. Just hoping to get a pointer or 2 which might save me having issues when I try to do this, thx

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Add the custom form field in the admin panel. Lets say you called this form field phone. Then in the template(s) where you want it to appear add <%$phone%>

    If you made a field called address then you would use <%$address%>

  3. #3
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Once you create the custom field, it will automatically appear on the Add Listing form ( add.php ), but if you want it to display on the detail listing page ( /your-theme/detail_link.html ) you'll need to add it the way Bruce said
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  4. #4
    Join Date
    Dec 2007
    Posts
    19

    Default

    excellent thanks guys, hadnt spotted it in the admin panel

  5. #5
    Join Date
    Mar 2007
    Posts
    65

    Default

    Just curious, what is the difference between <%$state%> and <$%state%>. I was getting a double entry for the value using the first one. It would show up as Utah, Utah on the detail page.

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Stuff within <% %> are handled by smarty, something like <$% would probably be interpreted by PHP

Similar Threads

  1. Custom fields in New Ticket form in iDesk?
    By shDave in forum iDesk - Customer Service Helpdesk
    Replies: 0
    Last Post: 09-28-2005, 02:32 PM
  2. New Fields in Review Form (ESM?)
    By andmunn in forum v3.2
    Replies: 4
    Last Post: 09-14-2005, 10:15 PM
  3. Add Fields To Submit form
    By 4webmasters in forum v5.x
    Replies: 2
    Last Post: 06-17-2004, 11:37 PM
  4. Add Fields To Submit form & link display
    By 4webmasters.us in forum v5.x
    Replies: 9
    Last Post: 05-03-2003, 07:38 PM
  5. Replies: 1
    Last Post: 06-24-2002, 06:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •