


How to obtain multiple formIds by clicking on WeChat applet
This article introduces the method of obtaining multiple formids by clicking on a WeChat applet. I hope it will be helpful to friends who are learning the development of WeChat applet!
How to get multiple formIds by clicking on WeChat mini program
How to get multiple formIds in WeChat mini program, solve the problem of mini program Click once to submit multiple form questions. As long as you click the login button, you can submit the form once and get the formId once. However, it seems that it is not possible to achieve multiple submissions with one click.
The key points of the WeChat applet method of obtaining multiple formIds are the problems encountered and the process of solving them.
Recommended learning: navicat tutorial
Requirements: Click once on the WeChat applet to submit multiple forms. In fact, there are business requirements. I won’t write it clearly here. Just do Students who have come to this point will naturally understand that
Just like the above few lines of code, as long as you click the login button, you can submit the form once and get the formId once. However, if you want to click once and submit multiple times, just click Copying these lines of code doesn't seem to work, either by shrinking the button or some other weird ways.
What I want to talk about here is a click penetration method
I wrote a view inside (inside the button)
Let me show you the style (the style is very important)
.btn{ width: 20rpx; height: 20rpx; margin: 0; padding: 0; border-radius: 0; position: fixed; background: rgba(0,155,0,0.5); top: 0; } button::after{ border:none; } .aa{ width: 200rpx; height: 200rpx; background: rgba(0,155,0,0.5); position:fixed; top: 0; }再看一下js,顺便说一下,模拟器上看不到实际的formId,用手机调试模式可以看到 formSubmit: function(e) { if (e.detail.formId != \'the formId is a mock one\') { this.setData({ formIdString: e.detail.formId + , + this.data.formIdString }) } console.log(this.data.formIdString) },
What you see is this. When you click on any green area, you can click on the button and then submit the form.
Put the entire wxml code Copy it and put it in the view. It looks similar to before. In fact, it is stacked.
However, in actual operation, if you click on the green part, it will be submitted twice. Click on the red part. It will only be submitted once, why is this, look at the picture first
If you want more formId, you need more copy and paste, which is not available yet. Think of good solutions.
Recommended learning: Small program development
The above is the detailed content of How to obtain multiple formIds by clicking on WeChat applet. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

1. WeChat is a social platform that pays attention to privacy protection. Users cannot see who has visited their Moments or personal homepage. 2. This design is intended to protect user privacy and avoid potential harassment or snooping. 3. Users can only see the likes and comments records in their circle of friends, further ensuring the confidentiality of personal information.

1. When the other party is using WeChat, the prompt "The other party is typing" will be displayed below the user's message, which indicates that the other party may have seen the message sent by the user. 2. If the message is sent during the other party's active period and the other party does not reply for a long time, it means that the other party may have read the message but chose not to reply for some reason. 3. If the other party frequently updates the status of other platforms but ignores WeChat messages, it means that the other party has probably seen the message but chose not to reply for some reason.

Thanks to netizens Qing Qiechensi, HH_KK, Satomi Ishihara and Wu Yanzu of South China for submitting clues! According to news on September 2, there are recent rumors that "iPhone 16 may not support WeChat." In response to this, a reporter from Shell Finance called Apple's official hotline. Apple's technical consultant in China responded that whether iOS systems or Apple devices can continue to use WeChat, and WeChat The issue of whether it can continue to be listed and downloaded on the Apple App Store requires communication and discussion between Apple and Tencent to determine the future situation. Software App Store and WeChat Problem Description Software App Store technical consultant pointed out that developers may need to pay fees to put software on the Apple Store. After reaching a certain number of downloads, Apple will need to pay corresponding fees for subsequent downloads. Apple is actively communicating with Tencent,

1. After WeChat restores the blocked person, the blocked party will not receive any prompts or notifications, nor will they be aware that they have been blocked. 2. If you want to confirm whether you have been blocked by someone, you can verify it through indirect methods, such as checking the other party's circle of friends, sending messages, etc.

DeepSeek: A powerful AI image generation tool! DeepSeek itself is not an image generation tool, but its powerful core technology provides underlying support for many AI painting tools. Want to know how to use DeepSeek to generate images indirectly? Please continue reading! Generate images with DeepSeek-based AI tools: The following steps will guide you to use these tools: Launch the AI Painting Tool: Search and open a DeepSeek-based AI Painting Tool (for example, search "Simple AI"). Select the drawing mode: select "AI Drawing" or similar function, and select the image type according to your needs, such as "Anime Avatar", "Landscape"

1. Open the WeChat app, click [Me] at the bottom of the interface, and select the [Settings] function. 2. Click [Chat], click [Chat Background] to enter the chat background setting interface. 3. Click [Select Background Image] or [Select from Album] or [Take a Photo]. 4. Select and click the picture you want to use, and then click [Use] in the upper right corner.

1. To recover deleted WeChat chat history, you need to use two mobile phones for data migration. 2. On the old phone, click [Me] → [Settings] → [Chat] → [Chat History Migration and Backup]. 3. Select [Migrate] and set the target device platform. After selecting the chat history to be restored, click [Start]. 4. Then log in to the same account on the new phone and scan the QR code on the old phone to start the migration. 5. After the migration is completed, the deleted chat history will be restored to the new phone.

1. WeChat Lingqiantong adopts a multi-layer security mechanism, including password protection, real-name authentication, mobile phone binding, etc., to ensure the security of user accounts. 2. WeChat Pay uses a variety of encryption methods, including SSL encrypted transmission, real-time monitoring, etc., to ensure transaction security. 3. WeChat Pay also cooperates with banks and financial institutions to implement risk control and prevention measures to monitor and handle abnormal transactions. 4. When using WeChat Lingqiantong, users should also strengthen the protection of personal accounts, set complex passwords, change passwords regularly, and not disclose personal information at will.
