I am using a photo field in my module like so
'bg_image' => array(
'type' => 'photo',
'label' => __('Choose Tab Background Image', 'fl-builder'),
'show_remove' => true,
),
And then because it is in a repeatable form I am calling it to the frontend like so
foreach ($forms as $form) {
$tabbg = $form->bg_image_src;
echo '<div style="background-image:'.$tabbg.';"></div>';
}
Everything works fine, however if I have debug enabled I get this error
Notice: Undefined property: stdClass::$bg_image_src