Please Note: We are no longer using forums to facilitate standard support. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Blank values in $field array when using gforms_field_content filter

  1. Hiya,

    I'm attempting to change the HTML output of a form by using the gforms_field_content filter.

    However, I cannot find the name and ID values I need to populate my custom HTML.

    This is what the var_dump($field) gives me in my filter function:

    array
      'adminLabel' => string '' (length=0)
      'adminOnly' => string '' (length=0)
      'allowsPrepopulate' => boolean false
      'defaultValue' => string '' (length=0)
      'description' => string '' (length=0)
      'content' => string '' (length=0)
      'cssClass' => string '' (length=0)
      'errorMessage' => string '' (length=0)
      'id' => int 1
      'inputName' => string '' (length=0)
      'isRequired' => boolean true
      'label' => string 'Dear Sibs' (length=9)
      'noDuplicates' => string '' (length=0)
      'size' => string 'medium' (length=6)
      'type' => string 'post_content' (length=12)
      'postCustomFieldName' => string '' (length=0)
      'displayAllCategories' => boolean false
      'displayCaption' => string '' (length=0)
      'displayDescription' => string '' (length=0)
      'displayTitle' => string '' (length=0)
      'inputType' => string '' (length=0)
      'rangeMin' => string '' (length=0)
      'rangeMax' => string '' (length=0)
      'calendarIconType' => string '' (length=0)
      'calendarIconUrl' => string '' (length=0)
      'dateType' => string '' (length=0)
      'dateFormat' => string '' (length=0)
      'phoneFormat' => string '' (length=0)
      'addressType' => string '' (length=0)
      'defaultCountry' => string '' (length=0)
      'defaultProvince' => string '' (length=0)
      'defaultState' => string '' (length=0)
      'hideAddress2' => string '' (length=0)
      'hideCountry' => string '' (length=0)
      'hideState' => string '' (length=0)
      'inputs' => null
      'nameFormat' => string '' (length=0)
      'allowedExtensions' => string '' (length=0)
      'captchaType' => string '' (length=0)
      'page_number' => string '' (length=0)
      'captchaTheme' => string '' (length=0)
      'simpleCaptchaSize' => string '' (length=0)
      'simpleCaptchaFontColor' => string '' (length=0)
      'simpleCaptchaBackgroundColor' => string '' (length=0)
      'failed_validation' => string '' (length=0)
      'productField' => string '' (length=0)
      'enablePasswordInput' => string '' (length=0)
      'maxLength' => string '' (length=0)
      'enablePrice' => string '' (length=0)
      'basePrice' => string '' (length=0)
      'disableQuantity' => boolean false
      'inputMask' => boolean false
      'inputMaskValue' => string '' (length=0)
      'formId' => int 2
      'pageNumber' => int 1
      'descriptionPlacement' => string 'below' (length=5)
      'conditionalLogicFields' =>
        array
          empty

    How do I get those values out?

    Thanks,
    Phil

    Posted 3 years ago on Monday February 27, 2012 | Permalink

 

Support Tickets

Open A New Support Ticket
 Open A New Priority Support Ticket *

* Developer license holders only