I’m upgrading from PHPmaker 8 to 2020 (and haven’t been working with PHPmaker for long time).
One of the issues is the “default values” in “add page” in de fields-section. In v8 I used things like CurrentUserName(), ew_CurrentDate() etc…
But when I try these in v2020 i get error:
Make sure that default value is a valid php-expression…
Any idea how to cover this?
There is no more ew* functions. The ew* prefix is removed since v2019. Just use the function name without the prefix, e.g. ew_CurrentDate() => CurrentDate().
Thank you!I also figured out that the message “Make sure that default value is a valid php-expression…” is just a notification, even when you type a correct PHP-expression.
I was a bit confused by that.Just need to ignore it (and click Don’t show again )