Select to view content in your preferred language

Images not showing in Title in form

952
7
06-28-2023 12:11 AM
PaulHallett1305
Emerging Contributor

HI,

I am trying to use the company logo in the title of the form page.  I am aware of being able to use the logo via a question, but don't want to change the data model and hang a logo off each object.

The code I use is as follows:

Type:'note',

Name: 'generated_note_form_title',

Label: '<p><img src="filename" style="bgcolor: #1F5780;width: 100%"/></p>'

Just just get the colour and not the logo (logo is a png with transparency on back ground)

Any ideas?  Driving me bananas, this should work

I am using Survey123 Connect


0 Kudos
7 Replies
Richard_Purkis
Esri Contributor

Hi @PaulHallett1305 

Thanks for raising the issue

I would double check that you have included the correct image file format as it is case sensitive and ensure it is saved in the media folder. I used your code and mine displays as expected

logo2.png

 

 

 

 

 

 

 

Hope this helps

0 Kudos
PaulHallett1305
Emerging Contributor

Hi Richard

Thanks for this.  Noticed you're using a jpg: are png's not to be used?  I tried your way and it still didn't work.

In the image I have attached, this works, however, I just wanted to use a header so as to not adjust the data model with a logo for each record.


 

0 Kudos
PaulHallett1305
Emerging Contributor

Hi Richard

Did you know get a chance to check my reply?

Your suggestion simply doesn't work on my Form?  Is it based on a version?  Or something else?

I really don't want to use a logo, as it changes the data model and we're in a change freeze.

Thanks in advance

Paul


0 Kudos
Richard_Purkis
Esri Contributor

Hi @PaulHallett1305 

Sorry for not getting back to you

I notice that you are using a group. I believe you may be running into this defect: 

  • BUG-000158622: Images fail to display when inserted into Group labels using HTML formatting and viewed in web app

Do you agree? If you try the same html in a note does the image appear?

Hope this helps

0 Kudos
PaulHallett1305
Emerging Contributor

Hi Richard

No, that group is for a title and it actually works.

I've tried logo, and I have tried the note suggestion you made and whilst the logo works, the note doesn't, but if I use logo I have to change the data model.

It's for brading purposes but doesn't work

Cheers

Paul

0 Kudos
Richard_Purkis
Esri Contributor

Hi @PaulHallett1305 

May you share your xlsx with just the rows that concern the logo and I can look into it further

Thanks

0 Kudos
PaulHallett1305
Emerging Contributor

Hi Richard,

Note>logo>filename works

Note>example1>html doesn't work.

ideally, we'd like the html to be the one that works.

Cheers

Paul

 

Screenshot 2023-07-06 at 11.35.52.pngScreenshot 2023-07-06 at 11.33.25.png

0 Kudos