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
Table of Contents
Methods
- prefillContactFromAccount() : void
Methods
prefillContactFromAccount()
protected
prefillContactFromAccount(Form $form) : void
Parameters
- $form : Form