• Resolved wahnsinniger

    (@wahnsinniger)


    I’ve finished the champagne reception party planner so far, it now works wonderfully because of the friendly help here in the forum.

    I related the results to the number of participants and the duration of the event.
    I defined the duration using a number field.

    Problem: I can set the basic setting to 0.5 hours – but if you use the up and down arrows to set a longer period of time – it only does this in steps of whole hours, not in 0.5 steps.

    Does anyone have any advice for me?
    Many Thanks!

    The page I need help with: [log in to see the link]

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

    (@codepeople)

    Hello @wahnsinniger

    Please, follow the steps below:

    1. Select the “Number” option for the “Number format” attribute in the field’s settings.

    2. Insert an “HTML Content” field in the form with the following piece of code as its content:

    
    <script>
    fbuilderjQuery(document).one('showHideDepEvent', function(){
    jQuery('[id*="fieldname11_"]').attr('step', 0.5);
    });
    </script>
    

    Best regards.

    Thread Starter wahnsinniger

    (@wahnsinniger)

    Thx a lot, it works – but now the up and down arrow is missing.
    What do I have to do?
    Sorry for the noob questions.

    Plugin Author codepeople

    (@codepeople)

    Hello @wahnsinniger

    If you enter the comma symbol as the decimal separator in the field’s settings, it won’t be a valid number for javascript. So, the field must use an input tag with type="text", but the browsers display the arrows only with input tags whose type="number"

    Please, go to the field’s settings and enter the dot (.) as the decimal separator.

    Best regards.

    Thread Starter wahnsinniger

    (@wahnsinniger)

    Thx a lot,
    I changed that – but now it’s jumping from predefined 0.5 to 1, 2, 3, without 0.5 steps if I use the arrows.

    Plugin Author codepeople

    (@codepeople)

    Hello @wahnsinniger

    You have entered the piece of code I recommended for the “HTML Content” field encoded as HTML, the " symbols were encoded as &quot;

    If you prefer you can contact me through my private website: Contact Us

    Best regards.

    Thread Starter wahnsinniger

    (@wahnsinniger)

    Sorry, I don’t understand what you are talking about.

    I did how you told me – and it worked.
    Only the 0.5 steps don’t work

    Plugin Author codepeople

    (@codepeople)

    Hello @wahnsinniger

    Please, contact me through my private website to help you with the code.

    Best regards.

    Thread Starter wahnsinniger

    (@wahnsinniger)

    Thx, but I can’t.
    I didn’t buy the pro version.

    Plugin Author codepeople

    (@codepeople)

    Hello @wahnsinniger

    It does not matter. Please, contact me through my private website.

    Best regards.

    Thread Starter wahnsinniger

    (@wahnsinniger)

    “codepeople” guided me to his personal contact on a private website and then asked me for the wordpress access of my website.

    I don’t think that this is a proper behaviour.

    I have to report that.

    Plugin Author codepeople

    (@codepeople)

    Hello @wahnsinniger

    I asked you for access to edit your form directly, because you are copying the code with wrong characters, but you can say no and I will find another way to help you.

    Sincerely.

    Thread Starter wahnsinniger

    (@wahnsinniger)

    Ok,
    then please tell me: Which are the wrong characters?

    Plugin Author codepeople

    (@codepeople)

    Hello @wahnsinniger

    You have copied the " character encoded as HTML &quot;

    Please, try the other solution I recommended you from the our support service.

    Best regards.

    Thread Starter wahnsinniger

    (@wahnsinniger)

    Ah, ok, I saw the fail.
    My fault – I don’t know why the code changed.
    Sorry for being impolite, but if I am asked for the login of my website I use to react with fear.
    I changed it and it works.
    Thx a lot,
    Greets!

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Calculated Fields Form – hours in 0,5 steps’ is closed to new replies.