Results 1 to 4 of 4

Thread: Select id value

  1. #1
    New user
    Join Date
    06-14-16.
    Posts
    24

    Default Select id value

    Hi everyone,

    I have a drop-down list (select) in the back office I want to display the name of the form in the back office and retrieve the ID in the front office in order to display the form via
    PHP Code:
    {{insert_form::<?php echo $arrItem['raw']['typeformation']; ?>}}
    I can't display the corresponding ID, is it possible?
    Thank you.

  2. #2
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    142

    Default

    You can select the table tl_forms in the attribute single selection (Select) and select the name for the display in the backend.

    In your template you should have the ID in raw in the node "__SELECT_RAW__".

  3. #3
    New user
    Join Date
    06-14-16.
    Posts
    24

    Default

    Quote Originally Posted by zonky View Post
    In your template you should have the ID in raw in the node "__SELECT_RAW__".
    Sorry I don't understand what a node has and where do I place "__SELECT_RAW__"

  4. #4
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    142

    Default

    debug your template https://metamodels.readthedocs.io/en...templates.html and look at all child nodes in raw...

    you should find your id
    Last edited by zonky; 11/06/2019 at 07:37.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •