• Resolved adewebdev

    (@adewebdev)


    Is there a way to embed the calculator field on the page instead of having a user press on it to bring it up? So the full calendar is shown and they can press different dates easily. Thanks.

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

    (@codepeople)

    Hello @adewebdev

    My apologies for the delay in responding to your question. In the current plugin version, that is not possible by default. However, you can implement a partial solution as follows:

    Assuming the date field is the fieldname1 (you should use the field’s name in your form), insert an “HTML Content” field in the form, and enter the following piece of code as its content:

    <script>
    fbuilderjQuery(document).one('showHideDepEvent', function(){
    let f = getField('fieldname1').jQueryRef(),
        fd = f.find('[id*="_date"]'), 
        dc = f.find('.dfield');
    fd.datepicker('destroy').css('pointer-events', 'none');
    dc.datepicker({inline:true, altField:fd});	
    });
    </script>

    Best regards.

    Thread Starter adewebdev

    (@adewebdev)

    Thanks for the tips, I can’t get it to work at the moment but will keep trying. It’s not high priority but a nice to have.

    Plugin Author codepeople

    (@codepeople)

    Hello @adewebdev

    Please, indicate the URL to the page that contains the form to check your code in action.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Embed the calendar on page’ is closed to new replies.