Menu

Custom Form based on field Value

2021-07-30
2022-07-08
  • Thiago Arcanjo

    Thiago Arcanjo - 2021-07-30

    Hello,

    Its possible change my opened FORM based in a field value?

    Example:

    FIELD NEEDED: ( )Type A ( ) Type B

    IF SELECTED (Type A)
    HIDE: Field X
    SHOW Field Y

    IF SELECTED (Type B)
    HIDE: Field Y
    SHOW Field X

    And remove some AttributeEnum values based on another field AttributeEnum selected value?

     

    Last edit: Thiago Arcanjo 2021-07-30
  • Pierre Goiffon

    Pierre Goiffon - 2021-07-30

    Hello,
    By custom form do you refer to the Customized request forms extension ?
    The latest version 2.2.0 adds this possibility of displaying fields based on conditions on other fields in the same form : get it from the hub !

     
    👍
    1
  • Thiago Arcanjo

    Thiago Arcanjo - 2021-07-30

    No forms sorry. HTML element form.

    For a custom class ADD/Modify for example.

     

    Last edit: Thiago Arcanjo 2021-07-30
  • Pierre Goiffon

    Pierre Goiffon - 2021-08-04

    I don't understand
    Please give more details on what you want to do
    Maybe some sketches also ?

     
  • Thiago Arcanjo

    Thiago Arcanjo - 2021-08-05

    Example:

    Add a new Person:

    Field: Type of Person - ( ) Physical ( )Legal

    If I select Physical:
    SHOW Field: Identity Number
    HIDE field: Corporate Name

    If I select Legal:
    SHOW field: Corporate Name
    HIDE Field: Identity Number

    It's more like how to use the js trigger for ONCHANGE VALUE in html form fields and change that form hidden/visible fields

     
  • Pierre Goiffon

    Pierre Goiffon - 2022-07-08

    Hello,
    Wooops almost 1 year later sorry, I forgot to answer this one.
    For now there isn't anything standard to do this in the standard datamodel. We would love to implement this thought...
    In the meantime, you can either add custom JS using extensibility plugins, or use the Customized request forms extension.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.