Images from Google Drive Displaying on the Client

@UCTechWeb - one further point, you shouldn’t need to reference your components like this :

get_open_form().page_panel.get_components()[0].image_1.source  = ...

You should be able to reference them directly, like this :

get_open_form().image_1.source = ...

Each component on a form must have a unique name, even if they are inside a container. So whilst you can fully qualify it like you have done, it’s not necessary and could cause problems if you rearrange your forms.

(thanks to @alcampopiano who pointed that out on another thread)

EDIT - there are exceptions to this, however, as @stefano.menci pointed out below. If the components you are referencing are inside another form that’s been added to the open form, either by dragging & dropping or via add_component(), you may need to qualify the path further. There are probably other exceptions as well.

1 Like