mauro
Member
Hi, maybe this could be a stupid question for an expert Fabrik user, but I'm unable to make a databasejoin element print a default value when the element value from the record is null and the user is in "details view"...
I tried to return a default value with some php code in the Default php evaluation field of the databasejoin element, and it works... But only in form edit view! In both the details view and list view the field value remains null...
How can I make so that Fabrik prints a php evaluated default value (when its value from the record is null) in all the views (list/details/form edit) ?
P.S.: for the list view, I tried to use the list plugin "php_events" to execute php code on the event onLoadData to prefill the databasejoin fields too when they are null... And it works, but of course only for the list view. How can I do that for the details view too?
I tried to return a default value with some php code in the Default php evaluation field of the databasejoin element, and it works... But only in form edit view! In both the details view and list view the field value remains null...
How can I make so that Fabrik prints a php evaluated default value (when its value from the record is null) in all the views (list/details/form edit) ?
P.S.: for the list view, I tried to use the list plugin "php_events" to execute php code on the event onLoadData to prefill the databasejoin fields too when they are null... And it works, but of course only for the list view. How can I do that for the details view too?