Thread tagged as: Question

Predefine Categories

Is there anyway we can predefine the value for category in a template ?

Titus Saju

Titus Saju 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you mean select one or more categories by default when an empty form loads?

yes , exacyly

Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

Hello Titus,

You need to specify the category ID in the default attribute:

<perch:categories id="categories" set="products" label="Categories" default="6">