Support

Account

Home Forums Add-ons Repeater Field Issues with Repeater Field Media Library

Unread

Issues with Repeater Field Media Library

  • On the frontend, we are displaying several repeaters with image upload links that display the Media Library. When users add a new row, and go to add an image to that row, everything works normally.

    If I don’t add an image, save, and return to that same form, it will bring up the Media Library twice, so that if the user uploads and choose an image, once they confirm there will be a 2nd Media Library showing. There are several fields that have repeaters with an image upload, and they all behave the same way.

    Has anyone else experienced this issue?

    The code to register the field group is as follows:

    array (
    			'key' => 'field_52d460d604808',
    			'label' => 'Inspiration',
    			'name' => 'inspiration',
    			'type' => 'repeater',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'min' => '',
    			'max' => '',
    			'layout' => 'table',
    			'button_label' => '+ Image',
    			'sub_fields' => array (
    				array (
    					'key' => 'field_52d460e204809',
    					'label' => 'Your Inspiration Images',
    					'name' => 'your_good_space_inspiration',
    					'type' => 'image',
    					'instructions' => 'Upload an image here',
    					'required' => 0,
    					'conditional_logic' => 0,
    					'wrapper' => array (
    						'width' => 10,
    						'class' => '',
    						'id' => '',
    					),
    					'return_format' => 'array',
    					'preview_size' => 'thumbnail',
    					'library' => 'uploadedTo',
    					'min_width' => '',
    					'min_height' => '',
    					'min_size' => '',
    					'max_width' => '',
    					'max_height' => '',
    					'max_size' => '',
    					'mime_types' => '',
    				),
    				array (
    					'key' => 'field_52d460f00480a',
    					'label' => 'Inspiration Image Description',
    					'name' => 'inspiration_description',
    					'type' => 'textarea',
    					'instructions' => 'Tell us what it is you like about this image.',
    					'required' => 0,
    					'conditional_logic' => 0,
    					'wrapper' => array (
    						'width' => 90,
    						'class' => '',
    						'id' => '',
    					),
    					'default_value' => '',
    					'placeholder' => '',
    					'maxlength' => '',
    					'rows' => 5,
    					'new_lines' => 'br',
    					'readonly' => 0,
    					'disabled' => 0,
    				),
    				
    			),
    		)
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.