Complex Timesheet Form
I would suggest looking at the gravity forms plugin. It will allow you to have a pdf emailed or stored in the database.
I would suggest looking at the gravity forms plugin. It will allow you to have a pdf emailed or stored in the database.
Though you haven’t mention the process and WP tables to insert textbox values in existing WP table. Either you can used option table or postmeta table for your purpose. For option: WordPress provides two specification API functions for writing data to the database. One comes in the form of adding information, one comes in the … Read more
$table = wp_save; This is setting $table to a PHP constant wp_save. If I had to guess I’d say you don’t actually have a constant by that name, and just meant to set the table name to wp_save. To do that you need to put the table name between quotes, so that it’s a String: … Read more
Please use below html and shortcode in the contact form .you missed the checkbox and radio button values <div class=”custom-control custom-radio”> [radio customRadio id:customRadio1 class:custom-control-input “value4″] <label class=”custom-control-label” for=”customRadio1″>Something</label> </div> <div class=”custom-control custom-radio”> [radio customRadio id:customRadio2 class:custom-control-input “value5″] <label class=”custom-control-label” for=”customRadio2″>Something</label> </div> <div class=”custom-control custom-checkbox”> [checkbox checkbox1 id:customCheck1 class:custom-control-input “Value1″] <label class=”custom-control-label” for=”customCheck1″>Something</label> </div> <div … Read more
You can add listener on submit ..something like this: document.addEventListener( ‘wpcf7submit’, function( event ) { if ( ‘123’ == event.detail.contactFormId ) { alert( “The contact form ID is 123.” ); // do something productive } }, false );
It appears you are using the WPForms plugin. The checkbox is getting checked, but the styling of the check mark sets its color to white on a white background, so you are unable to see the checkbox as checked/selected. Check to see what CSS styling options there are with WPForms or try to override the … Read more
If you’re using WordPress, you shouldn’t send POST requests directly to current URL. There is an API to process such requests. So how should that be done? First of all, you should send request to admin-ajax.php: So instead of this: <from action=”<?php get_permalink( $post->ID ) ?>” method=”POST” id=””> You should have this (also, there was … Read more
I think you want to look at this line, unless I’m mistaken: $posts = get_posts( ‘numberposts=-1&post_status=publish’ ); You should be able to add the orderby and order parameters: $posts = get_posts( ‘numberposts=-1&post_status=publish&order=asc&orderby=title’ );
Your problem is this bit: $input = $vCode That is not comparing the variables. It’s assigning the value of $vCode to $input. If you want to compare the two values, you need to use == or ===. $input == $vCode It still wouldn’t work though, because you haven’t actually defined $input. You’re only defining it … Read more
I’ve been studying (and blocking) automated form spam for years. Most advice relates to hidden fields, CSS tricks, ‘stupid’ questions (“what is 1+3”), and others. And the reason that those tricks (and others) don’t work with automated spam bots is that they don’t ‘see’ your form, they just post to it. They scrape the form, … Read more