Page 1 of 1

CustomTemplateBody get field in php for each record

Posted: Tue Jul 23, 2024 11:30 pm
by servgas

Hi, please using CustomTemplateBody at List Page server event, I need to pull a value to use in php for each record.

This is my code, but it shows the latest record data, how can I get this field value for each record?. is it possible?

<?php
print CurrentPage()->TicketID->CurrentValue;

thank you


Re: CustomTemplateBody get field in php for each record

Posted: Wed Jul 24, 2024 8:39 am
by arbei

You should use Custom Template Tags. You cannot use PHP code because Custom Template is JavaScript and is only rendered after the whole page is rendered by PHP.