Forum Replies Created
- AuthorPosts
Kelvin Lee
ParticipantDear 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.Kelvin Lee
ParticipantDear 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.Kelvin Lee
ParticipantDear Ally,
I fixed the problem by adding checkboxradio(“refresh”)
$(this).attr(‘checked’, false).checkboxradio(“refresh”);
Best regards,
Kelvin
Kelvin Lee
ParticipantDear 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
Kelvin Lee
ParticipantDear 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.
Kelvin Lee
ParticipantDear Ally,
Many thanks for your code, your code works perfectly.
Best regards,
Kelvin.
Kelvin Lee
ParticipantDear 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.
Kelvin Lee
ParticipantDear 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
Kelvin Lee
ParticipantHi Ally, it is great but how can I limit the editor with only some styling such as only allowing the <b>,<i>,<u>,
- , etc.?
December 21, 2014 at 5:24 pm in reply to: Converting Quform WordPress form as Quform PHP form #13428Kelvin Lee
ParticipantDear 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.
Kelvin Lee
ParticipantDear 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.
Kelvin Lee
ParticipantAny reply?
Kelvin Lee
ParticipantPurchased but no support here.
Kelvin Lee
ParticipantDear 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.
Kelvin Lee
ParticipantAlmost day time, not yet received reply.
- This reply was modified 10 years ago by
- AuthorPosts