Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    To display only the time fields, would be needed some custom classes. Please, follow the steps below:

    1. Select the Date-Time field.

    2. Assign to the field a custom class name, for example: my-datetime

    Note: The class names are assigned to the fields through the attribute: “Add Css Layout Keywords”

    3. Insert a “HTML Content” field in the form with the piece of code below as its content:

    <style>
    #fbuilder .my-datetime .dformat,
    #fbuilder .my-datetime .hasDatepicker{display:none !important;}
    </style>

    About the operations, if you are needing more specific date time operations, please, use the “Date Time” module, included with the Developer version of the plugin.

    More information in the following link:

    https://cff.dwbooster.com/documentation#datetime-module

    Best regards.

    Thread Starter Damn!

    (@greedymind)

    thank you for the reply. I was able to hide the date fields following your info. I’m facing another problem now, I was trying to do a simple calculation and i’ve rather hit a dead end. It would of great help if you point me in the right direction. here’s the piece of code i was trying to execute.

    (function()
    {
    var d1 = new Date (fieldname16);
    var d2 = new Date ( d1 );
    d2.setHours ( d1.getHours() );
    return d2;
    })();

    I typed this in a calculated field and it does not return the date selected in fieldname16 rather it returns somedate in 1970. This is what i get when i run the above piece of code.

    Thu Jan 01 1970 05:30:16 GMT+0530 (India Standard Time)

    but if i remove fieldname16 from this below line
    var d1 = new Date (fieldname16);
    it returns the current date. May I know what am I doing wrong?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    The field has been hidden but it is there, and the value by default of the date-time field is the current date, if you want get only the time part, you should use the corresponding operations, like:

    return d2.getHours()+':'d2.getMinutes();

    Best regards.

    Thread Starter Damn!

    (@greedymind)

    thanks you. It works now. And how do I make the date time field to be empty by default instead of showing the current date?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Tick the checkbox in the attributes of the date-time field, to use the default value as placeholder.

    Best regards.

    Thread Starter Damn!

    (@greedymind)

    I’m sorry to keep bugging you but it seems to be im facing the same problem again and again. one small question. shouldn’t the output for this code be the date selected in fieldname16?

    (function()
    {
    var d1 = fieldname16;
    return d1;
    }
    )();

    Thread Starter Damn!

    (@greedymind)

    if you could just tell me how to display the exact date selected in the datetime field in a calculated field, it would be of great help. thanks.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    If you want get date with format:

    day/month/year hours:minutes:seconds am or pm

    and the fieldname16 is a date time field, the correct equation would be simply:

    CDATE(fieldname16, ‘dd/mm/yyyy h:i:s a’)

    and that is all.
    Best regards.

    Thread Starter Damn!

    (@greedymind)

    thank you that was massively helpful. Now I just need to add 14 hours to the result of this equation.
    CDATE(fieldname16, ‘dd/mm/yyyy h:i:s a’)
    I would really really appreciate an answer for this one. Again much thanks. you guys are the best.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I recommend modify the equation as follows:

    CDATE((fieldname16*86400000+14*3600000)/86400000, 'dd/mm/yyyy h:i:s a')

    If you need additional help to implement your project’s equations, should be hired a custom coding service:

    https://cff.dwbooster.com/customization

    Best regards.

    Thread Starter Damn!

    (@greedymind)

    Thanks very much for your support. One last question, Do I get custom coding service if I purchase the plugin or is it a separate service apart from purchasing the plugin?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    The custom coding service is a separated service. You can request a custom coding service even with the free version of the plugin.

    Please, visit the my website:

    https://cff.dwbooster.com/customization

    Best regards.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Date Time field’ is closed to new replies.