Viewing 3 reply threads
  • Author
    Posts
    • #6210
      jrcreative
      Member

      When I add an editor field to a group with add_more it breaks it out of the sequence. If I change ‘editor’ to a ‘textarea’ it works as expected. Am I missing something? Here’s my code:

      piklist('field' , [
      	'type' => 'group'
      	,'label' => __('Event')
      	,'field' => 'pro_card_events'
      	,'add_more' => true
      	,'columns' => 12
      	,'template' => 'field'
      	,'fields' => [
      		['type' => 'text'
      		,'field' => 'event_title'
      		,'label' => __('Event Title')
      		,'columns' => 12
      		]
      		,['type' => 'datepicker'
      		,'field' => 'event_date'
      		,'label' => __('Date')
      		,'columns' => 6
      		]
      		,['type' => 'text'
      		,'field' => 'event_time'
      		,'label' => __('Time')
      		,'columns' => 6
      		]
      		,['type' => 'textarea'
      		,'field' => 'event_description'
      		,'label' => __('Description')
      		,'columns' => 12
      		,'template' => 'field'
      		]
      		,['type' => 'text'
      		,'field' => 'event_location'
      		,'label' => __('Location')
      		,'columns' => 12
      		]
      		,['type' => 'text'
      		,'field' => 'event_link'
      		,'label' => __('Event Link')
      		,'columns' => 8
      		]
      		,['type' => 'text'
      		,'field' => 'event_link_text'
      		,'label' => __('Event Link Text')
      		,'columns' => 4
      		]
      	]
      
    • #6222
      Steve
      Keymaster

      I used this code and it seemed to work for me. See screenshot:

      piklist('field' , array(
      	'type' => 'group'
      	,'label' => __('Event')
      	,'field' => 'pro_card_events'
      	,'add_more' => true
      	,'columns' => 12
      	,'template' => 'field'
      	,'fields' => array(
      		array(
      				'type' => 'text'
      			,'field' => 'event_title'
      			,'label' => __('Event Title')
      			,'columns' => 12
      		)
      		,array(
      			'type' => 'datepicker'
      			,'field' => 'event_date'
      			,'label' => __('Date')
      			,'columns' => 6
      		)
      		,array(
      			'type' => 'text'
      			,'field' => 'event_time'
      			,'label' => __('Time')
      			,'columns' => 6
      		)
      		,array(
      			'type' => 'editor'
      			,'field' => 'event_description'
      			,'label' => __('Description')
      			,'columns' => 12
      			,'template' => 'field'
      		)
      		,array(
      			'type' => 'text'
      			,'field' => 'event_location'
      			,'label' => __('Location')
      			,'columns' => 12
      		)
      		,array(
      			'type' => 'text'
      			,'field' => 'event_link'
      			,'label' => __('Event Link')
      			,'columns' => 8
      		)
      		,array(
      			'type' => 'text'
      			,'field' => 'event_link_text'
      			,'label' => __('Event Link Text')
      			,'columns' => 4
      		)
      	)
      ));
      
      Attachments:
      You must be logged in to view attached files.
    • #6226
      jrcreative
      Member

      ah, I was using 9.4.x. I upgraded to 9.9.7 and all is well.

    • #6227
      Steve
      Keymaster

      nice! Closing ticket.

Viewing 3 reply threads
  • The topic ‘editor breaks the add_more’ is closed to new replies.