BuddyDev

Search

[Resolved] Profile Field – Number format – Number within min/max values

Tagged: ,

  • Participant
    Level: Initiated
    Posts: 19
    Quint A. Rahaman, Jr. on #45158

    Plugin: bp-xprofile-custom-field-types

    Use Case:
    1. Add number field where the user can enter a floating point number to the Number within min/max values field type.

    Issue:
    Item 1. Only integers can be entered or selected.

    FYI Regarding a different field type:
    Item 2. The Range input field does not show the number value in the Member Profile while in Edit mode.
    Item 3. My preference would be whole integers shown on the slider with tick marks at the bottom and wherever the “knob” is located, it’s value is show above it (floating point value).

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #45173

    Hi Quint,
    Thank you for the feedback.

    We are using the default HTML field for number/range and their UI is managed by browsers.

    1. There is no restriction from our side. We can’t use the field for both the integer and float, It may be used for only one at a time.
    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number#allowing_decimal_values

    After your feedback, we do plan to add the step option to let users choose.

    2. This is an issue with how the broser works.
    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range

    3. It can be achieved by adding external scripts(an example is jQuey UI slider)
    https://jqueryui.com/slider/#custom-handle

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    Quint A. Rahaman, Jr. on #45175

    Hello Brajesh,

    Thanks for the info!

    Quint

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #45177

    You are welcome.

You must be logged in to reply to this topic.

This topic is: resolved