Viewing 1 reply thread
  • Author
    Posts
    • #8800

      If I have a group of fields, can I add another field to the same group from another piklist plugin?

      Curious as I’d like to have addons that add data to an existing group.

      EX:

      
      piklist('field', array(
          'type' => 'group'
          ,'label' => __('a group test label', 'piklist-demo')
          ,'description' => __('test.', 'piklist-demo')
          ,'field' => 'my_group_field'
          ,'value' => 'none'
          ,'add_more' => true
          ,'fields' => 
          array(
              array(
                  'type' => 'datepicker',
                  'field' => 'field1_date',
                  'label' => 'field1 Date',
                  'value' => date('M d, Y', time() + 604800), // set default value
                  'options' => array(
                      'dateFormat' => 'M d, yy'
                  )
      	),
            ===============> Can I add a field from another piklist plugin here? <=============
      ));
    • #8801
      Steve
      Keymaster

      You can use either one of these Piklist filters as seen here >

      Take a look at the output from $field, and then you can write a function to modify it with your own field data.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.