Menu

[Extension] Customized Request Forms

Shorty1
2022-08-26
2022-09-13
  • Shorty1

    Shorty1 - 2022-08-26

    Hi there,

    we want to define a field in a request template that only should be shown when a defined value in a drop down list was choosen. Currently it seems that this will only work with static fields and text contents.

    If the dependend field has the code 004 and in the Dropdown there is a vaule called "Other" the field 005 should appear to give the ability to enter more data.

    :template->fieldcode004='Other'
    

    How can we achive this?

    Cheers, Shorty

     
  • Vincent @ Combodo

    Hi Shorty1,
    This is all explained in the extension wiki, assuming you have a version 2.2.0+ of the extension.
    The "master" field should be a Dropdown or a List. It's not recommended to use a Text or Date, it works but the screen is blinking on each entered character :-(
    The "dependent" field can be any type of fields (also a read-only one is useless today due to the below mentioned limitation)
    A newer version will be out end of September 2022, handling the current limitation by which initial values on dependent fields are not displayed
    Regards
    Vincent

     

    Last edit: Vincent @ Combodo 2022-08-26
    • Shorty1

      Shorty1 - 2022-08-26

      Hi Vincent,
      thanks for you quick reply.
      But why is it then not working :(

      Base Field:

      field name: permission
      code: permission
      input type: DropDown
      Value: Other, ....
      

      Optional Field:

      display condition: :template->permission='Other'
      

      But if I choose "Other" in the Base Field the optional field doesn't appear.
      Extension is installed in Version 2.3.3

       

      Last edit: Shorty1 2022-08-26
  • Vincent @ Combodo

    It should be working.
    "Values (OQL or CSV)" for the field "permission" are written as a single row, with no space after the comma?
    Carriage return breaks the behavior and space before and after a value is considered as part of the value, so must be included in the test or better: removed from the definition.

     

    Last edit: Vincent @ Combodo 2022-08-26
  • Shorty1

    Shorty1 - 2022-08-26

    Hi Vincent,
    perfect that did the trick.
    Can you please add this to the documentation?

    Cheers Shorty

     
    • Vincent @ Combodo

      Wiki updated...

       
  • Shorty1

    Shorty1 - 2022-09-13

    Hi Vincent,
    is there any syntax how to use this display condition with a dependency of two fields for example if a text field should be shown when Textfield A or Textfield B has a specific text?

     
  • Vincent @ Combodo

    No there is not yet any possibility to have a field dependent on more than a single field.

     

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.