Home › Forums › Quform WordPress › Normal Phone Mask
- This topic has 7 replies, 2 voices, and was last updated 10 months, 1 week ago by Ally.
- AuthorPosts
- November 20, 2023 at 3:43 pm #36238vsexmogushiyParticipant
Hello, how I can add mask: +1 (XXX) XXX-XX-XX?
Your instruction — https://support.themecatcher.net/quform-wordpress/guides/advanced/adding-a-masked-input-field by 2013 doesn’t work!November 21, 2023 at 10:03 am #36239AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
November 21, 2023 at 10:55 pm #36243vsexmogushiyParticipant1. Yes, I saw it, tell me for my mask, what is the correct regular expression to check +1 (000) 000-00-00? I think the reason is not sending a regular expression.
<abbr title=”HyperText Markup Language”>
add_filter(‘quform_element_valid_1_3’, function ($valid, $value, Quform_Element_Field $element) {
if ( ! preg_match(‘/^\(\d{3}\) \d{3}\-\d{4}$/’, $value)) {
$element->addError(‘Enter a phone number in the format (000) 000-0000’);
$valid = false;
}return $valid;
}, 10, 3);
</abbr>2. How do I send the value from this field also in the same mask? That is, so that it is not +1000000000, but +1 (000) 000-00-00?
3. And a big request to suggest how you can add the sender’s city when sending the form (naturally determined by the ip address)?
November 22, 2023 at 8:31 am #36246AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
November 27, 2023 at 4:47 pm #36264vsexmogushiyParticipantThank you very much.
Tell me another question, how is it possible to mark the form if the same form is used in different places on the site. In order to understand which form the user clicked on (header, footer, page body)? Or do you need to create 3 separate forms for these purposes?
November 28, 2023 at 9:24 am #36267AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 10 months, 2 weeks ago by Ally.
November 28, 2023 at 10:41 pm #36270vsexmogushiyParticipantThank you so much for the answer. You’re one of the best support teams I’ve ever met. With your permission, I will describe my case, I will be immensely grateful for detailed answers.
1. How to write dynamic parameters to me and how best to arrange it for me if I use several 3 – 5 places on my site where the same form is displayed. I add a
div
, and I add a form inside and I can assign each div aclass
and anid
. Approximately by the following construction:<div class="1" id="place_1">[quform id="2" name="XXX"] </div>
.How do I create a dynamic field with this separation?2. How do I add a link to the page from which the form came?
3. Is it possible to determine in some way depending on the screen size from which device the application came. Desktops, Tablets and Phones?
- This reply was modified 10 months, 1 week ago by vsexmogushiy.
- This reply was modified 10 months, 1 week ago by vsexmogushiy.
November 29, 2023 at 10:26 am #36273AllySupport 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.