Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Custom Validators #15776
    mtupuschies
    Participant

    Brilliant!
    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.

    in reply to: Custom Validators #15767
    mtupuschies
    Participant

    Found 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');

    in reply to: Custom Validators #15765
    mtupuschies
    Participant

    As 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.

    in reply to: Duplicating an Element #15727
    mtupuschies
    Participant

    Forget the last question. Managed to do it with a hidden field and dynamic default value.
    But again, thanks for the response earlier.

    M

    in reply to: Duplicating an Element #15726
    mtupuschies
    Participant

    Thanks 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

    in reply to: Getting at the data now I have it #15706
    mtupuschies
    Participant

    Hey 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:

    Creating a post

    In both you may look for some help if you’re not too familiar with WordPress.

    Hope I could help.

    Best regards,

    M

    in reply to: File Upload Database Value #15676
    mtupuschies
    Participant

    Hi Ally,

    thanks a million for this! Awesome 🙂

    in reply to: Wring Category #6647
    mtupuschies
    Participant

    Hi 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,
    Marcel

    in reply to: Style the link to fancybox #2564
    mtupuschies
    Participant

    Thanks! Worked with the shortcode 🙂
    Great support!

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