Confiform Display file name

Barry Smyth November 16, 2023

I have a form which allows a user to attach a file. However, when I look at the record in table view mode (or edit) and when the file is an image file (PNG in this case) it display the image and not the filename. 

How do I ensure that the file name is displayed rather that the image itself?

Thanks in advance

1 answer

0 votes
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2023

Hi

you can transform it through the asAttachment function getting the file name

myfield.asAttachment.fileName

Alex

Barry Smyth November 17, 2023

Can you give me an example of where in the form I would use that?

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2023

In ConfiForms Field macro, field name parameter (as usual :-))

Barry Smyth November 17, 2023

ok, tried that. And updated the table view the same. Both table view and form view show the filename (instead of the actual image). However, when I click on edit (which also uses the form view) the filename is not displayed (no file chosen). 

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2023

Well, of course it will say no file chosen, if you have not chosen any in this update

Barry Smyth November 17, 2023

Not sure I follow you. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events