vasanth
I'm new here

Is it possible to add the entries to CMS_INPUT_CHECKBOX dynamically ??

I have requirement that i should change the entries of CMS_INPUT_CHECKBOX based up on the CMS_INPUT_COMBOBOX.  Is it possible to change entries of the CMS_INPUT_CHECKBOX based up on the selection of CMS_INPUT_COMBOBOX ??

  <CMS_INPUT_COMBOBOX name="st_group" hFill="yes" useLanguages="no">

    <CMS_INCLUDE_OPTIONS type="public">

      <LABELS>

        <LABEL lang="*">#item.name</LABEL>

      </LABELS>

      <NAME>GroupComponent</NAME>

    </CMS_INCLUDE_OPTIONS>

    <LANGINFOS>

      <LANGINFO lang="*" label="Groups"/>

    </LANGINFOS>

  </CMS_INPUT_COMBOBOX>

  <FS_BUTTON name="st_button" onClick="script:get_all_user" useLanguages="no">

    <LANGINFOS>

      <LANGINFO lang="*" label="Fetch Users"/>

    </LANGINFOS>

    <PARAMS>

      <PARAM name="group">#field.st_group</PARAM>

      <PARAM name="user">#field.st_user</PARAM>

    </PARAMS>

  </FS_BUTTON>

  <CMS_INPUT_CHECKBOX name="st_user" hFill="yes" hidden="no" useLanguages="no">

    <ENTRIES>

      <ENTRY value="demo">

        <LANGINFOS>

          <LANGINFO lang="*" label="demo"/>

        

        </LANGINFOS>

      </ENTRY>

      <ENTRY value="demo1">

        <LANGINFOS>

          <LANGINFO lang="*" label="2nd label"/>         

        </LANGINFOS>

      </ENTRY>

    </ENTRIES>

    <LANGINFOS>

      <LANGINFO lang="*" label="Users"/>

    </LANGINFOS>

  </CMS_INPUT_CHECKBOX>

0 Kudos
11 Replies

felix.reinhold​ do you any sample code to implement this ??

0 Kudos
felix_reinhold
Returning Responder

Sadly not, but take a look at the TNodeProvider

0 Kudos