Create unique reference code on entry

2 posts by 2 authors in: Forums > CMS Builder
Last Post: April 14, 2014   (RSS)

By Chris - April 14, 2014

Hi zaba,

The "num" field is available on every table and is already configured to be a unique, auto-incrementing field. It's also not editable. Would it work for you to output "OP-" then the num field?

OP-<?php echo htmlencode($myTableName['num']); ?>

All the best,
Chris