You need to sign in to do that
Don't have an account?
how to create unique custom long text field in salesforce
how to create unique custom long text field in salesforce by trigger.?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
I believe a trigger can only manipulate data in a field, not create a field itself.
using .addError method you can avoid record creation with duplicate values for long text field.
Appending AUTONUMBER or any other unique fields to this long text via before trigger will leads to uniqueness.