Forum Replies Created
- AuthorPosts
mtupuschies
ParticipantBrilliant!
Had to change:
$('.iphorm_1_1').val((new Date()).yyyymmdd());
to:
$('input[name=iphorm_1_1]').val((new Date()).yyyymmdd());
but now its working like charm. Couldn’t have done without your help!
Thanks again.
mtupuschies
ParticipantFound this in the tips. And added a hidden date selector… see how this goes.
function mytheme_date_today()
{
$now = current_time('timestamp');return array(
'day' => date('j', $now),
'month' => date('n', $now),
'year' => date('Y', $now)
);
}
add_filter('iphorm_element_value_today', 'mytheme_date_today');
mtupuschies
ParticipantAs usual! Great support…
Really sorry but there one thing I just realised when I checked the submissions.
I have a form which writes all the data in a database. One field also writes the date using the given variable yyyy-mm-dd
No I just realised that when someone at the East coast of the US fills in the form after 4pm their time the date submitted comes in with a day too early. For example some users submitted their form on 30/06/2015 at 5pm (us time) – in the database the date selected is already the 01/07/2015.
Is there any way I can have the date populated to the database but taking the local date of the user rather than the server location? i’d like to avoid to add a manual date selector, just for convenience.
Would be great if you have a tip.
mtupuschies
ParticipantForget the last question. Managed to do it with a hidden field and dynamic default value.
But again, thanks for the response earlier.M
mtupuschies
ParticipantThanks a million! Would you have a tip on how I can submit the current user ID to a customer database?
The Variables only contain username / nice name / email.Thanks,
M
mtupuschies
ParticipantHey Jane,
sorry to reopen this threat. I would recommend to check out http://codecanyon.net/item/wpdatatables-responsive-tables-in-wordpress/3958969
I am using this very frequently to display data from a submitted forms which are stored in a custom table.
Another nice option would be:
In both you may look for some help if you’re not too familiar with WordPress.
Hope I could help.
Best regards,
M
mtupuschies
ParticipantHi Ally,
thanks a million for this! Awesome 🙂
mtupuschies
ParticipantHi Ally,
sorry for reopening this but I have one question to the post title.
Right now the code for pulling the post title is:$title = $form->getValue('iphorm_3_8');
What I like for one of my forms that the title is partly constant and partly using the code above.
How would I need to change the line so it looks like:title = WORD + $title = $form->getValue(‘iphorm_3_8’);
Thanks in advance,
Marcelmtupuschies
ParticipantThanks! Worked with the shortcode 🙂
Great support!- AuthorPosts