Aller au contenu principal

Initial value for FS_LIST type inline

Commentaires

5 commentaires

  • Zendesk API User
    Author: tsoloschenko - 4/7/2016 8:05

    Haha,

    I found a work around.

    1. Add the FS_LIST to the form

    2. Show the toolbar with the ADD / EDIT buttons

    3. Go to properties / default values

    4. Add one default entry

    5. Set the toolbar to hide

          <LAYOUT>

            <ADD component="toolbar" constraint="hide"/>

            <ADD component="overview" constraint="center"/>

            <ADD component="stackedview" constraint="hide"/>

          </LAYOUT>

    6. Remove the ADD button

          <ACTIONS>

            <ACTION name="ADD"/>

            <ACTION name="EDIT"/>

          </ACTIONS>

    Within the ContentCreator you can't Remove/Add items, but you can change the existing one.

    Is that solution ok that way?

    kind regards

    Tobias

    0
  • Zendesk API User
    Author: rednoss - 4/20/2016 14:02

    Hello Tobias,

    I'm not sure if I understand your question correctly. You want default values when you add an entry to your FS_LIST? But in your workaround you removed the add-button so that you just have a single entry?

    Please describe your question and your use case in detail so that we can figure out if your solution is the recommended one and mabye if a FS_LIST is the perfect input component to use.

    Best regards from Dortmund

    Rene

    0
  • Zendesk API User
    Author: tsoloschenko - 4/20/2016 14:37

    Hello Rene,

    the way you described it is absolutely correct. I just want not that the user is able to remove the single entry from out of a FS_LIST, so I add it via default properties and save the form so that it is entered into the fallback.xml. After this I remove the buttons so that the user is only able to click on it in the ui, but not to remove it.

    kind regards

    Tobias

    0
  • Zendesk API User
    Author: rednoss - 4/22/2016 7:57

    Hello Tobias,

    your workaround is the only way I know. If you are using only one entry inside your FS_LIST you can use the referenced template directly instead of using it inside a FS_LIST.

    Kind regards

    Rene

    0
  • Zendesk API User
    Author: tsoloschenko - 5/11/2016 11:37

    Thanks a lot!

    0

Vous devez vous connecter pour laisser un commentaire.