Forum Replies Created
- AuthorPosts
Venom
ParticipantAgree. That will be great to add a hook for us to modify data before setting the value.
However, I am afraid of that is the issue of PhpExcel instead of your code.
May be the hook could be supplied with the format code and it will be passed to the cell style before writing into the CSV/Excel/Html?
June 16, 2020 at 8:04 am in reply to: Javascript inside HTML field does not work after upgraded to 2.12.0 #31525Venom
ParticipantI did a further test. it should be allowed, however in the preview screen, it displays as plain text only.
June 16, 2020 at 8:02 am in reply to: Javascript inside HTML field does not work after upgraded to 2.12.0 #31524Venom
ParticipantHi Ally,
I want to know in 2.12.0, I created a new form, does it allow to place <script> xxx</script> inside HTML element anymore? It seems it will treat it as plain text only.
Regards,
Venom
June 12, 2020 at 3:45 am in reply to: Javascript inside HTML field does not work after upgraded to 2.12.0 #31508Venom
ParticipantHi Ally,
I found a backup for the Form and imported the Form back to the latest version 2.12.0. It works again.
Venom
ParticipantHi Ally,
You are correct. The root cause is the same ID for those select elements that make Select2 from work propertly . Thank you for your great support. Please close the case.
regards,
Venom
Venom
ParticipantHi Ally,
Thank you so much for the great enhancement. Please close the case.
Regards,
Venom
April 21, 2019 at 5:12 pm in reply to: Long Quform embedded in Bootstrap 4 Modal on mobile device #29124Venom
ParticipantI fixed this issue by adding a new css style for the modal
Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-overflow-scrolling.modal{
-webkit-overflow-scrolling: touch;
}Venom
ParticipantHi,
I think that is due to the variable not available outside the function scope. You might try this.
<script>
jQuery(document).ready(function ($) {$('.quform-field-5_11').change(function () {
vCodigo = '';
if ($(this).val() == 'Guatemala') {
vCodigo='502';
} else {
vCodigo='999';
}
$('.quform-field-5_12').val(vCodigo);
});});
</script>
Venom
ParticipantHi,
I think you can download the AWS sdk from AWS S3 PHP SDK
and write a custom plugin to add custom code inside hook quform_upload_absolute_path to modify the file to be saved other than default upload folder of wordpress. Then inside the hook quform_post_process to add the some custom PHP code using AWS S3 library to upload the file to cloud and delete the original file.Regards,
Venom
Venom
ParticipantHi,
You have set the default value to 0. It is not empty. It will be saved to the database. You might try to use the Placeholder to show 0.
Regards,
Venom
Attachments:
You must be logged in to view attached files.Venom
ParticipantHi,
Please refer to the following thread, it might help.
It seems that Quform would send those fields with value only in notification email by default if using the {all_form_data}.
not-getting-empty-fields-in-results-email
- This reply was modified 6 years, 4 months ago by
Venom.
Attachments:
You must be logged in to view attached files.Venom
ParticipantVenom
ParticipantHi,
Please go to the element setting of the” list of topics” field and try to add the following conditional logics as shown in the screenshot.
Regards,
VenomAttachments:
You must be logged in to view attached files.Venom
ParticipantHi tkx,
You might try this.
add_action('quform_post_process_2', function (array $result, Quform_Form $form) {....... //below your code
//On success
if ( ! is_wp_error( $user_id ) ) {
echo "User created : ". $user_id;
global $wpdb;
$entry_id = $form->form_entry_id;
$sql = $wpdb->prepare("update wp_quform_entries set created_by = %s where id =%d", $user_id , $entry_id);
$result = $wpdb->query( $sql);
}}
Venom
ParticipantHi Ally,
Great support. I would update my code as well to include the “s” for the next update. Please mark it as resolved.
Regards,
Venom
- This reply was modified 6 years, 4 months ago by
- AuthorPosts