CoolCMS API

ResponseFormAccountPrefillTrait

Prefills the contact from the logged-in user's account into the advert response form (Bazaar and Comcat `ResponseForm`): email and phone from the account profile.

Only default values are set; Nette ignores them for a submitted form, so what the user overwrites (or clears) is not restored. A guest gets nothing; a missing account value leaves the field empty.

Tags
requires

$this->userManager (Front System UserManager)

Table of Contents

Methods

prefillContactFromAccount()  : void

Methods

On this page

Search results