Forum Replies Created

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • in reply to: Add data to custom database #20295
    Kelvin Lee
    Participant

    Dear Ally,

    I want to save the form data to my custom table also, I create the table in the same WP database with below statement

    CREATE TABLE IF NOT EXISTS quf_reg (
      redID int(11) NOT NULL AUTO_INCREMENT,
      name varchar(50) NOT NULL,
      contatct varchar(50) NOT NULL,
      email varchar(50) NOT NULL,
      gender varchar(50) NOT NULL,
      age varchar(50) NOT NULL,
      ticket varchar(50) NOT NULL,
      address varchar(150) NOT NULL,
      timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
      PRIMARY KEY (redID)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table for QuForm external saving' AUTO_INCREMENT=1 ;
    

    and I setup the custom database ( refer to the attachment ), sorry my form data fields are in Traditional Chinese, I am sure there is no problem to the Custom database settings (MySQL) as I copy and paste the setting from wp-config.php.

    I try add new record but no data is saved to the custom table, do I need to do the step you mentioned in guide here, how can I do the debug and find the reason why the data cannot be saved?

    Best regards,

    Kelvin

    Attachments:
    You must be logged in to view attached files.
    in reply to: Quform with latest JQM #15293
    Kelvin Lee
    Participant

    Dear Ally,

    It is good to hear a new version is coming, what new features will be added? For the new features, I would suggest to consider below item.

    Conditional logic
    Label element can be aligned at right and bottom also, for example we design the form as screenshot attached or putting label under element which look like a paper form.

    Best regards,

    Kelvin.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Conditional logic in Quform PHP? #15290
    Kelvin Lee
    Participant

    Dear Ally,

    I fixed the problem by adding checkboxradio(“refresh”)

    $(this).attr(‘checked’, false).checkboxradio(“refresh”);

    Best regards,

    Kelvin

    in reply to: Conditional logic in Quform PHP? #15288
    Kelvin Lee
    Participant

    Dear Ally,

    Thanks millions.

    How can I uncheck all checked checkboxes if radio button 2 is not selected? I tried below code but failed


    if (value == 2) {
    $checkboxWrap.slideDown();
    } else {
    $('input[name="reason[]"]').each(function () {
    $(this).attr('checked', false);
    });
    $checkboxWrap.slideUp();
    }

    • This reply was modified 10 years ago by Kelvin Lee. Reason: Reformat
    in reply to: Conditional logic in Quform PHP? #15278
    Kelvin Lee
    Participant

    Dear Ally,

    Follow to this topic, how can I configure the input element as require field if form meets the specific condition? Configuring the field as required is PHP but conditionally show the field is Javascript, how can I check the condition using javascript by changing the PHP code to set whether the field is required or not?

    Best regards,

    Kelvin.

    in reply to: Conditional logic in Quform PHP? #15274
    Kelvin Lee
    Participant

    Dear Ally,

    Many thanks for your code, your code works perfectly.

    Best regards,

    Kelvin.

    in reply to: Conditional logic in Quform PHP? #15267
    Kelvin Lee
    Participant

    Dear Ally,

    I need to embed the quform with JQM, I also read http://jsfiddle.net/ezanker/bgyY2/1/ and try but not work. Your above code work only on without JQM. How can I trigger the radio button and then show/hide another element under JQM?

    Best regards,

    Kelvin.

    in reply to: Conditional logic in Quform PHP? #15257
    Kelvin Lee
    Participant

    Dear Ally,

    How can I add the id for radio element? I tried to add id=”feedback” to each <input …> but not work

    <div class="quform-element quform-element-radio">
    <div class="quform-spacer">
    <label class="field" for="feedback"></label>
    <div class="quform-input no-width">
    <div class="quform-options quform-options-inline">
    <div class="quform-option">
    <label class="round"><input name="feedback" value="1" type="radio" />Agree</label>
    </div>
    <div class="quform-option">
    <label class="round"><input name="feedback" value="2" type="radio" />Agree with condition</label>
    </div>
    <div class="quform-option">
    <label class="round"><input name="feedback" value="3" type="radio" />No comment</label>
    </div>
    <div class="quform-option">
    <label class="round"><input name="feedback" value="4" type="radio" />Disagree</label>
    </div>
    <div class="quform-option">
    <label class="round"><input name="feedback" value="5" type="radio" />Strong disagree</label>
    </div>
    </div>
    </div>
    </div>
    </div>

    I want to hide below code if the 2nd radio button of above code is selected.


    <div class="quform-element quform-element-checkbox">
    <div class="quform-spacer">
    <label class="field" for="reason"></label>
    <div class="quform-input no-width">
    <div class="quform-options quform-options-inline">
    <div class="quform-option">
    <label><input name="reason[]" value="1" type="checkbox" />Reason 1</label>
    </div>
    <div class="quform-option">
    <label><input name="reason[]" value="2" type="checkbox" />Reason 2</label>
    </div>
    <div class="quform-option">
    <label><input name="reason[]" value="3" type="checkbox" />Reason 3</label>
    </div>
    <div class="quform-option">
    <label><input name="reason[]" value="4" type="checkbox" />Reason 4</label>
    </div>
    <div class="quform-option">
    <label><input name="reason[]" value="5" type="checkbox" />Reason 5</label>
    </div>
    </div>
    </div>
    </div>
    </div>

    • This reply was modified 10 years ago by Kelvin Lee. Reason: Reformat
    in reply to: Textarea Visual editor #13785
    Kelvin Lee
    Participant

    Hi Ally, it is great but how can I limit the editor with only some styling such as only allowing the <b>,<i>,<u>,

    • , etc.?
    in reply to: Converting Quform WordPress form as Quform PHP form #13428
    Kelvin Lee
    Participant

    Dear Ally,

    Using an iFrame is worked for inserting a form in page, as the iFrame has it custom height and there is a vertical scroll bar within the frame, how can I set the frame height which can be dynamically adjusted according to the form content? I want to make it look like as built-in form on the same page.

    Best regards,

    Kelvin.

    in reply to: Adding a date picker #13415
    Kelvin Lee
    Participant

    Dear Ally,

    I can’t find the function datepicker() from the Quform PHP, where can I download the script?

    By the way, what is the data type of the field for storing the date?

    Best regards,

    Kelvin.

    in reply to: Question about Quform WordPress #13290
    Kelvin Lee
    Participant

    Any reply?

    in reply to: Converting Quform WordPress form as Quform PHP form #13289
    Kelvin Lee
    Participant

    Purchased but no support here.

    in reply to: Question about Quform WordPress #13272
    Kelvin Lee
    Participant

    Dear Ally,

    Thanks for your coding, I will try this. By the way, how can I update two WordPress user database for one form. I assume your coding is applied on existing WordPress but not for remote WordPress, why I need this because I have two WordPress on same site and hope user account can be shared.

    Best regards,

    Kelvin.

    in reply to: Question about Quform WordPress #13198
    Kelvin Lee
    Participant

    Almost day time, not yet received reply.

Viewing 15 posts - 1 through 15 (of 20 total)
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy