Skip to main content
Extended the answer based on the comment below.
Source Link
Amitabh Vyas
  • 2.6k
  • 2
  • 15
  • 39

Rather creating a manual drop list field multiple times, I would prefer to create an item repository somewhere in the content tree (Global location is preferable) with all possible Drop List values and on the drop list field in WFFM Form map the Set Item by value to Selecting Sitecore Items rather Manual entering names. Thus you can reuse the same set of drop list values for any form you create.

  1. Create the set of possible values in drop down using specific user defined template:

enter image description here

  1. Create a form and define a drop list field on it:

enter image description here

  1. Navigate to ‘List’ section:

enter image description here

  1. Open the ‘Set Items By’ drop list:

enter image description here

  1. Select the ‘Selecting Sitecore Items’:

enter image description here

  1. Click on Browse and choose the repository path from the content tree:

enter image description here

  1. It will populate all the item created under that repository. You can differentiate between ‘Value’ and ‘Text’ property here:

enter image description here

Once done, all the items created under the repository will be available on your form. Which you can either use on multiple forms or multiple times on same form:

Note: Make sure all the drop list values are published to web database.


Edit 1: To duplicate a form field.

You can navigate to the /sitecore/system/Modules/Web Forms for Marketers/<<<Your Form Path>>> and duplicate the fields listed under that form:

Disclaimer: I never practically tested this approach but since form field is also an Sitecore Item hence I am assuming it should work.

enter image description here

Rather creating a manual drop list field multiple times, I would prefer to create an item repository somewhere in the content tree (Global location is preferable) with all possible Drop List values and on the drop list field in WFFM Form map the Set Item by value to Selecting Sitecore Items rather Manual entering names. Thus you can reuse the same set of drop list values for any form you create.

  1. Create the set of possible values in drop down using specific user defined template:

enter image description here

  1. Create a form and define a drop list field on it:

enter image description here

  1. Navigate to ‘List’ section:

enter image description here

  1. Open the ‘Set Items By’ drop list:

enter image description here

  1. Select the ‘Selecting Sitecore Items’:

enter image description here

  1. Click on Browse and choose the repository path from the content tree:

enter image description here

  1. It will populate all the item created under that repository. You can differentiate between ‘Value’ and ‘Text’ property here:

enter image description here

Once done, all the items created under the repository will be available on your form. Which you can either use on multiple forms or multiple times on same form:

Note: Make sure all the drop list values are published to web database.

Rather creating a manual drop list field multiple times, I would prefer to create an item repository somewhere in the content tree (Global location is preferable) with all possible Drop List values and on the drop list field in WFFM Form map the Set Item by value to Selecting Sitecore Items rather Manual entering names. Thus you can reuse the same set of drop list values for any form you create.

  1. Create the set of possible values in drop down using specific user defined template:

enter image description here

  1. Create a form and define a drop list field on it:

enter image description here

  1. Navigate to ‘List’ section:

enter image description here

  1. Open the ‘Set Items By’ drop list:

enter image description here

  1. Select the ‘Selecting Sitecore Items’:

enter image description here

  1. Click on Browse and choose the repository path from the content tree:

enter image description here

  1. It will populate all the item created under that repository. You can differentiate between ‘Value’ and ‘Text’ property here:

enter image description here

Once done, all the items created under the repository will be available on your form. Which you can either use on multiple forms or multiple times on same form:

Note: Make sure all the drop list values are published to web database.


Edit 1: To duplicate a form field.

You can navigate to the /sitecore/system/Modules/Web Forms for Marketers/<<<Your Form Path>>> and duplicate the fields listed under that form:

Disclaimer: I never practically tested this approach but since form field is also an Sitecore Item hence I am assuming it should work.

enter image description here

Source Link
Amitabh Vyas
  • 2.6k
  • 2
  • 15
  • 39

Rather creating a manual drop list field multiple times, I would prefer to create an item repository somewhere in the content tree (Global location is preferable) with all possible Drop List values and on the drop list field in WFFM Form map the Set Item by value to Selecting Sitecore Items rather Manual entering names. Thus you can reuse the same set of drop list values for any form you create.

  1. Create the set of possible values in drop down using specific user defined template:

enter image description here

  1. Create a form and define a drop list field on it:

enter image description here

  1. Navigate to ‘List’ section:

enter image description here

  1. Open the ‘Set Items By’ drop list:

enter image description here

  1. Select the ‘Selecting Sitecore Items’:

enter image description here

  1. Click on Browse and choose the repository path from the content tree:

enter image description here

  1. It will populate all the item created under that repository. You can differentiate between ‘Value’ and ‘Text’ property here:

enter image description here

Once done, all the items created under the repository will be available on your form. Which you can either use on multiple forms or multiple times on same form:

Note: Make sure all the drop list values are published to web database.