How to add blank value in the starting of the selection box of flexform


You can add a blank value in the beginning of the selection box (flexform).

Add below code in flexform for add blank value in the starting of the selection box.

<items type="array">
   <numIndex index="100">
   <numIndex index="0">==== Select ==== </numIndex>
      <numIndex index="1">0</numIndex>
   </numIndex>
</items>

For Selection box in flexform

<companyList>
  <TCEforms>
    <label>
      LLL:EXT:EXTENSION_NAME/flex-label.xml:
      EXTENSION_NAME.select_category
    </label>
  <config>
    <type>select</type>
      <foreign_table>TABLE_NAME</foreign_table>
      <foreign_table_where> 
          AND TABLE_NAME.deleted=0 AND TABLE_NAME.hidden=0 
          ORDER BY  TABLE_NAME.uid
      </foreign_table_where>
      <size>10</size>
      <autoSizeMax>10</autoSizeMax>
      <minitems>0</minitems>
      <maxitems>1</maxitems>
      <items type="array">
          <numIndex index="100">
               <numIndex index="0">==== Select ==== </numIndex>
               <numIndex index="1">0</numIndex>
          </numIndex>
      </items>
      <show_thumbs>1</show_thumbs>
      <allowNonIdValues>1</allowNonIdValues>
  </config>
  </TCEforms>
</companyList>

If you have any query then feel free to contact me at Jainish Senjaliya

Advertisements

One thought on “How to add blank value in the starting of the selection box of flexform

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s