Shahvez Hassan
Forum Replies Created
-
This is my client’s website. He says that he lost his Elementor account. Also, when users click the Login/Register button, the popups don’t display correctly because they are behind the Elementor popup.
So, Can someone help me with this problem?
Thanks! Now the poll titles are not including in Headings.
- This reply was modified 1 month, 2 weeks ago by Shahvez Hassan.
- This reply was modified 1 month, 2 weeks ago by Shahvez Hassan.
Reply Please!
Thanks a lot man, it worked on the paid version, very impressive.
Thanks again.
It is also not working on free version
function wpf_dev_select_validation( $field_id, $field_submit, $form_data ) { // Change the number to match your form ID if ( absint( $form_data[ 'id' ] ) !== 8889 ) { return $field_id; } // Change this number to match the field ID if (absint($field_id) === 1 ) { $field_submit = (array) $field_submit; // Make sure we have an array of choices and count the number of choices. $count_choices = is_array( $field_submit ) ? count( $field_submit ) : 0; if ( $count_choices > 3 ) { wpforms()->process->errors[ $form_data[ 'id' ] ][ $field_id ] = esc_html__( 'Please select no more than 3 options', 'your-text-domain' ); } } }
Thanks, but I know about it, I lost my wpform account and gmail account, due to a virus in my computer, so I have to reset the computer completely. Now, I have not enough money to hire a developer, because I already spent my money on hosting and premium plugins. I can understand it, but have no way. Hope, you will help me, You can also talk me in peThanks, but I know about it. I lost my wpform account and gmail account due to a virus in my computer, so I have to reset the computer completely. Now, I do not have enough money to hire a developer because I already spent my money on hosting and premium plugins. I can understand it, but I have no way. I hope you will help me. You can also talk to me in person.?
Here’s my Email: [email protected]
This code is not working.
function wpf_dev_select_validation( $field_id, $field_submit, $form_data ) { // Change the number to match your form ID if ( absint( $form_data[ 'id' ] ) !== 1895 ) { return $field_id; } // Change this number to match the field ID if (absint($field_id) === 41 ) { $field_submit = (array) $field_submit; // Make sure we have an array of choices and count the number of choices. $count_choices = is_array( $field_submit ) ? count( $field_submit ) : 0; if ( $count_choices > 3 ) { wpforms()->process->errors[ $form_data[ 'id' ] ][ $field_id ] = esc_html__( 'Please select no more than 3 options', 'your-text-domain' ); } } }
Here’s the page.
Here’s the field. It’s the country dropdown. (you can see Afghanistan is written there)
If you will open it, you will have to login.
Here’s a login for you.
User: wpform
Pass: Wpform123
Hope, you will reply me fast.
- This reply was modified 7 months ago by Shahvez Hassan.
- This reply was modified 7 months ago by Shahvez Hassan.
If it is not possible, so please tell me How to show error when a user select more than 3 options in a specific dropdown. Hope, You will help Me.
Thanks.
- This reply was modified 7 months, 1 week ago by Shahvez Hassan.
But you can also create it with custom code, because you are the developer. Very disappointed.
Can you please give me custom code please, I need this?
Thanks a lot, very helpful response ??. But it is working on all dropdowns of the form, I only need this functionality on 1 dropdown.
- This reply was modified 7 months, 2 weeks ago by Shahvez Hassan.
- This reply was modified 7 months, 2 weeks ago by Shahvez Hassan.
- This reply was modified 7 months, 2 weeks ago by Shahvez Hassan.
But I need this, please tell me how to show error when anyone select 3 options in dropdown, or give me code for this please.
Forum: Developing with WordPress
In reply to: How to add these types of custom fields?I will pay for it, tell me the price
Forum: Developing with WordPress
In reply to: How to add these types of custom fields?Can you give me code for this?
Forum: Plugins
In reply to: [WooCommerce] How to add these types of custom fields?Hello, I got the code from CHATGPT, but I don’t know how to integer it with WooCommerce, like it is just form, How can the details save and the amount can add to cart and the button buy now can redirect to checkout page, Please Guide Me, If it is possible by editing code, here’s the code:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Create Order</title> <style> body { font-family: 'Poppins', sans-serif; background-color: #f4f4f4; margin: 0; padding: 0; } #order-container { max-width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #ccc; border-radius: 5px; background-color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } h2 { text-align: center; color: #333; font-family: 'Krona One', sans-serif; } form { max-width: 400px; margin: 0 auto; } label { display: block; margin-bottom: 8px; color: #555; font-family: 'Poppins', sans-serif; } input, select { width: 100%; padding: 12px; margin-bottom: 15px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 3px; font-size: 18px; } #adCost { font-size: 24px; margin-top: 15px; color: #4CAF50; /* Green color */ } #checkoutButton { display: block; width: 100%; padding: 15px; margin-top: 15px; /* Added space between adCost and button */ background-color: #7e57c2; /* Purplish color */ color: white; border: none; border-radius: 8px; /* Adjusted border-radius */ cursor: pointer; font-size: 20px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Added shadow */ } #checkoutButton:hover { background-color: #673ab7; /* Darker purplish color on hover */ } /* Different styles for "Website Traffic" category */ #category option[value="websiteTraffic"] { background-color: #4CAF50; color: white; } </style> </head> <body> <div id="order-container"> <h2>Create Order</h2> <form id="orderForm"> <label for="country">Select Country:</label> <select id="country" name="country"> <option value="UK" selected>United Kingdom</option> <option value="USA">United States of America</option> </select> <label for="category">Select Category:</label> <select id="category" name="category"> <option value="sales">Sales</option> <option value="websiteTraffic">Website Traffic</option> </select> <label for="trafficAmount">Traffic Amount (Minimum 3000):</label> <input type="number" id="trafficAmount" name="trafficAmount" min="3000" required> <div id="adCost">Ad Cost: $0.00</div> <button type="button" id="checkoutButton">Buy Now</button> </form> </div> <script> document.getElementById("trafficAmount").addEventListener("input", updateAdCost); function updateAdCost() { const trafficAmount = document.getElementById("trafficAmount").value; const adCostElement = document.getElementById("adCost"); const costPer10Traffic = 0.1; const adCost = (trafficAmount / 10) * costPer10Traffic; adCostElement.textContent = "Ad Cost: $" + adCost.toFixed(2); } document.getElementById("checkoutButton").addEventListener("click", function () { // Add your checkout logic here alert("Redirecting to checkout page..."); }); document.getElementById("category").addEventListener("change", function () { const category = this.value; // Reset background-color and color for all options document.querySelectorAll("#category option").forEach(function (option) { option.style.backgroundColor = ""; option.style.color = ""; }); // Apply styles based on the selected category if (category === "websiteTraffic") { this.options[this.selectedIndex].style.backgroundColor = "#4CAF50"; this.options[this.selectedIndex].style.color = "white"; } }); </script> </body> </html>
- This reply was modified 8 months, 1 week ago by Shahvez Hassan.