Reply To: Sequence number and autosuggestion

Home Forums Quform WordPress Sequence number and autosuggestion Reply To: Sequence number and autosuggestion

#30740
redpages
Participant

I tried it and it worked.

$paddedNum = sprintf(“%04d”, $form->getEntryId());
$code = ‘SO/’ . date_i18n(‘m’) . date_i18n(‘-Y/’) . $paddedNum;

$form->setValue(‘quform_1_22’, $code);

but I don’t know how to apply it to the title in the notification admin.
At this time the content of the notification subject is: SO/{date|format:m}-{date|format:Y}/{entry_id} by Sales {user|display_name}.
This formula produces (ex) : SO/03-2020/3. Whereas what I want is SO/03-2020/0003.

Thank for helping

Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy