• Resolved martin136

    (@martin136)


    Hello!
    at my latest form I would like to offer the user to set his daily activities.
    As example these are the user’s entries:

    • sleep: 8h
    • work: 8h
    • sports: 2h
    • household: 2h
    • leisure time: 5h

    You see the user has entered 25 hours of activities.
    Do you have an idea how to deal with it?

    I think I will use sliders.
    I have no other creative idea yet how to display it more engaging.

    One idea is that entries are being limited when value 24 has been achieved.

    • sleep: 12h
    • work: 10h
    • sports: 1h
    • household: 1h -> slider only movable between value 0 and 1 possible
    • leisure time: 0h -> slider not movable: only value 0 possible

    When sleep, work or sports hours are being reduced, then values for household and leisure time can be raised again.

    I hope you understand what I mean.
    If it is too complicated, then it’s okay.
    If it is not that complicated it would be very useful to me.

    • This topic was modified 4 years, 2 months ago by martin136.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @martin136

    If you need a custom coding service to implement a specific behavior in your form, do not hesitate in contact me directly through my website: Custom Coding Service

    Best regards.

    Thread Starter martin136

    (@martin136)

    Thank you for that offer.
    It is possible that I will contact you.
    At the moment I’m trying to learn the possibilities of CFF. I’m at the beginning because there are so many more options.

    Plugin Author codepeople

    (@codepeople)

    Hello @martin136

    Actually, the plugin allows us to use with the forms (either as the equations associated with the “Calculated” fields, or script tags into the content of the “HTML Content” fields) the piece of code you want.

    Best regards.

    Thread Starter martin136

    (@martin136)

    Hello @codepeople

    I have prepared everything so far. Just one thing I cannot find in the settings.

    I would like to show a certain field, if the sum of the specified slider values is unequal to a certain value.
    (I want to inform the user, that the values chosen are invalid)

    If it is equal to that value, then the regular calculation field should be displayed.

    Plugin Author codepeople

    (@codepeople)

    Hello @martin136

    You should define the dependencies in the settings of the calculated field. I’ll try to describe the process with a hypothetical example.

    Assuming the equation associated with the calculated field is: fieldname1+fieldname2, and the text with the error message is entered through the “Instruct. Text” field fieldname3. Finally, you want to display the fieldname3 field if the sum is different to 100 (the names and values of the fields are hypotheticals)

    Define the dependency as follows (in the settings of the calculated field):

    “if the value is Not equal to 100, and select the fieldname3 from the list of fields”

    More information in the following post of the plugin’s blog:

    https://cff.dwbooster.com/blog/2020/03/01/dependencies/

    Best regards.

    Thread Starter martin136

    (@martin136)

    Hello @codepeople
    It works!

    I had to create an additional invisible calculated field for the sum because the calculated field to display is using PREC and additional calculations (multiplication).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘setting limits’ is closed to new replies.