Page 1 of 1

ViewValue Multiple Fields

Posted: Wed Feb 28, 2024 6:15 pm
by wincode2008

Good Day,

How can i change the viewvalue of Field which contains multiple field? the field contains file name wherein hyperlink is applied

Filelink1,
Filelink2,
Filelink3

change to

Download Icon
Download Icon
Download Icon


Re: ViewValue Multiple Fields

Posted: Wed Feb 28, 2024 6:21 pm
by arbei

You may use Row_Rendered server event to change the ViewValue property of the field object.


Re: ViewValue Multiple Fields

Posted: Wed Feb 28, 2024 6:35 pm
by wincode2008

i made it for single value only, but how about with multiple value? How will I separate the vales and put a download link


Re: ViewValue Multiple Fields

Posted: Wed Feb 28, 2024 6:37 pm
by arbei

You may parse the DbValue properly which is database value (i.e comma seperated file names by default). If the URLs of the files are encrypted, you can parse the HTML of the ViewValue. PHPMaker uses DiDOM to parse HTML, you may use it without adding the package yourself.