Results 1 to 7 of 7

Thread: Hide Custom Form Fields

  1. #1
    Forum Member martinkoss's Avatar
    Join Date
    Jul 2011
    Location
    United Kingdom
    Posts
    116
    Thanks
    25
    Thanked 22 Times in 13 Posts

    Hide Custom Form Fields

    I started a thread about this a couple of weeks ago but can't find it. Sorry.

    I'm trying to make a couple of the custom fields not visible to public but, so far, can't find where the fields are built.

    So far, to stop any of the custom fields from appearing, I have made them all only visible to admins but, ideally, I'd like to do something like

    Code:
      $fields = apply_filters( 'va_render_form_fields', $fields, $listing_id, $categories );
         foreach( $fields as $field ) {
         if ($field_name!='FieldWeWantToHide') {
              $html = html( 'div class="form-field"', scbForms::input_from_meta( $field, $listing_id ) );
              echo apply_filters( 'va_render_form_field', $html, $field, $listing_id, $categories, $taxonomy );
        }
         }
    Any hints to nudge me in the right direction?

    Cheers.

  2. #2
    Forum Member martinkoss's Avatar
    Join Date
    Jul 2011
    Location
    United Kingdom
    Posts
    116
    Thanks
    25
    Thanked 22 Times in 13 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Forum Member martinkoss's Avatar
    Join Date
    Jul 2011
    Location
    United Kingdom
    Posts
    116
    Thanks
    25
    Thanked 22 Times in 13 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    Junior Member nelvis's Avatar
    Join Date
    Sep 2010
    Location
    Kenya
    Posts
    48
    Thanks
    3
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    ralmoor's Avatar
    Join Date
    Feb 2013
    Location
    United States
    Posts
    88
    Thanks
    3
    Thanked 4 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hide Form Fields On Create A Listing
    By ralmoor in forum Vantage General Discussion (Legacy)
    Replies: 3
    Last Post: March 25th, 2013, 06:14 PM
  2. Custom Fields Not Showing on Available Fields in Form Layout?
    By mintiesme in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: November 9th, 2012, 04:55 AM
  3. Hide fields in the ad form
    By rockis in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: July 30th, 2012, 10:53 PM