Home › Forums › Quform WordPress › Sequence number and autosuggestion
- This topic has 4 replies, 2 voices, and was last updated 4 years, 1 month ago by Ally.
- AuthorPosts
- February 19, 2020 at 2:56 am #30656redpagesParticipant
Hello,
I just bought and I have made 1st form on the website. but I experienced some difficulties.
I want to add a field where is filled in automatically by the system with sequential code, for example: INV1-180220, INV2-180220, INV3-180220, etc. The formula is INVx-DDMMYY, where x = sequence number, DD = date, MM = month, YY = year.
How can I achieved it?
And, I want to add a field that will be an autosuggestion list of wordpress users when I typed a few letters.
or it can be the select type field contains a list of woocommerce customer users that pickuped from users database.Thank for helping.
February 20, 2020 at 10:25 am #30663AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 2, 2020 at 11:03 pm #30738redpagesParticipant“getEntryId()”
how do you make this to be 4 digits?
Ex:
0003
0023
0344March 3, 2020 at 3:03 am #30740redpagesParticipantI 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
March 3, 2020 at 10:55 am #30744AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.