Can we change an image value with an image data field?

Benjamin Mourlon shared this question 5 years ago
Answered

Is it possible to change an image value with an image data field of a data master?


For example, an image of a product on his description page?


I tried to change value with expression builder :


select(filter(Product, (ID = ActiveProduct)), Image)


But unfortunately... it's not the good way.


So... is it possible?

Comments (7)

photo
1

Yes, you should be able to. Could you describe me your prototype a bit further please?

photo
1

Can I have an email to explain you my project? It's too much innovative to share it here and there are more than 1 question to ask you to be honest.

photo
1

Sure, send it to jim.support at justinmind.com

photo
1

Ok, I will write it asap.


I tried something simple to confirm my problem :


1) Create a data master Test with 3 fields : ID (text) ; icon (file upload) ; title (text)


2) Add an entry : ID = 1 ; a picture (i tried jpg and png) ; Test


3) Add an image and a label on the canvas


4) Add on page load interaction on each : set value with that expression :


Select(Filter(Test, (ID = '1')), field) [field = icon for image and title for label]


Only the label will be modified.

photo
1

That same example seems to work fine. Could you send us that simple prototype please?

photo
1

Ok, I found the problem, it works with Simulate, but not with preview, not really a problem, sorry.

photo
1

Yes, that could be happening. Thanks for reporting.