liferay pagefragment, default = value of another field

Jamie Sammons, modified 1 Year ago. New Member Post: 1 Join Date: 10/30/23 Recent Posts

So , i am relatively new to Liferay ,so please excuse my wording sometimes when it comes to liferay specific termonology.

My general Idea is to create a srcset , which can either be filled by three different url or one for all

I created a pagefragment , and now i am facing an issue: 

I defined multiple fileds in my configuration.json , which on their own work as intended.

The issue is , is there a way , to set the default value of two of my there string fileds to the value of my third.

 

thumbnail
Olaf Kock, modified 1 Year ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

Other than using JS to replace the content of empty (or placeholder) attributes by the default one, I don't think that there's an option.