Title: Shahvez Hassan's Replies | WordPress.org

---

# Shahvez Hassan

  [  ](https://wordpress.org/support/users/shahvez13/)

 *   [Profile](https://wordpress.org/support/users/shahvez13/)
 *   [Topics Started](https://wordpress.org/support/users/shahvez13/topics/)
 *   [Replies Created](https://wordpress.org/support/users/shahvez13/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/shahvez13/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/shahvez13/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/shahvez13/engagements/)
 *   [Favorites](https://wordpress.org/support/users/shahvez13/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 33 total)

1 [2](https://wordpress.org/support/users/shahvez13/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/shahvez13/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/shahvez13/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Elementor Website Builder - more than just a page builder] How can I fix this responsive issue?](https://wordpress.org/support/topic/how-can-i-fix-this-responsive-issue/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/how-can-i-fix-this-responsive-issue/#post-18044040)
 * 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?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Poll Maker by AYS - Versus Polls, Anonymous Polls, Image Polls] How to make title of poll to Div from H5](https://wordpress.org/support/topic/how-to-make-title-of-poll-to-div-from-h5/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/how-to-make-title-of-poll-to-div-from-h5/#post-17991855)
 * Thanks! Now the poll titles are not including in Headings.
    -  This reply was modified 1 year, 7 months ago by [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/).
    -  This reply was modified 1 year, 7 months ago by [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Poll Maker by AYS - Versus Polls, Anonymous Polls, Image Polls] How to make title of poll to Div from H5](https://wordpress.org/support/topic/how-to-make-title-of-poll-to-div-from-h5/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/how-to-make-title-of-poll-to-div-from-h5/#post-17988076)
 * Reply Please!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More] How do I limit the selection of dropdowns?](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/#post-17523455)
 * Thanks a lot man, it worked on the paid version, very impressive.
 * Thanks again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More] How do I limit the selection of dropdowns?](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/#post-17518167)
 * It is also not working on free version
 *     ```wp-block-code
       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' );
               }
   
           }
   
       }
       ```
   
 * [The Page.](https://foblx.com/demo-test/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More] How do I limit the selection of dropdowns?](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/#post-17517575)
 * 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: [shahvezwordpress@gmail.com](https://wordpress.org/support/users/shahvez13/replies/shahvezwordpress@gmail.com?output_format=md)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More] How do I limit the selection of dropdowns?](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/#post-17512756)
 * This code is not working.
 *     ```wp-block-code
       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](https://pushadss.com/create-order/).
 * Here’s the field. It’s the country dropdown. (you can see Afghanistan is written
   there)
 * ![](https://lh3.googleusercontent.com/VuJISkBytGfpqSuTVJdTomU3qjvMDu01flFAsW3gIOjUE1327YeAvgFKW3cujg88moOgdbGYzOhDBoKEeS-
   4T12RAmks5QT_h8du5gGFusGzRoGYdP-2b3mGCjCfqAzy-A=w1280)
 * 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 2 years, 1 month ago by [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/).
    -  This reply was modified 2 years, 1 month ago by [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More] How do I limit the selection of dropdowns?](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/#post-17506663)
 * 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 2 years, 1 month ago by [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More] How do I limit the selection of dropdowns?](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/#post-17503952)
 * But you can also create it with custom code, because you are the developer. Very
   disappointed.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More] How do I limit the selection of dropdowns?](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/how-to-limit-the-select-of-dropdown/#post-17495957)
 * Can you please give me custom code please, I need this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More] How can select only 3 options from dropdown?](https://wordpress.org/support/topic/how-can-select-only-3-options-from-dropdown/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/how-can-select-only-3-options-from-dropdown/#post-17484832)
 * 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 2 years, 1 month ago by [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/).
    -  This reply was modified 2 years, 1 month ago by [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/).
    -  This reply was modified 2 years, 1 month ago by [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More] How can select only 3 options from dropdown?](https://wordpress.org/support/topic/how-can-select-only-3-options-from-dropdown/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/how-can-select-only-3-options-from-dropdown/#post-17477749)
 * 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](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to add these types of custom fields?](https://wordpress.org/support/topic/how-to-add-these-types-of-custom-fields/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/how-to-add-these-types-of-custom-fields/#post-17432746)
 * I will pay for it, tell me the price
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to add these types of custom fields?](https://wordpress.org/support/topic/how-to-add-these-types-of-custom-fields/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/how-to-add-these-types-of-custom-fields/#post-17429948)
 * Can you give me code for this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to add these types of custom fields?](https://wordpress.org/support/topic/how-to-add-these-types-of-custom-fields-2/)
 *  Thread Starter [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/)
 * (@shahvez13)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/how-to-add-these-types-of-custom-fields-2/#post-17428572)
 * 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:
 *     ```wp-block-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 2 years, 2 months ago by [Shahvez Hassan](https://wordpress.org/support/users/shahvez13/).

Viewing 15 replies - 1 through 15 (of 33 total)

1 [2](https://wordpress.org/support/users/shahvez13/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/shahvez13/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/shahvez13/replies/page/2/?output_format=md)