Instead of using a computed when composed field called RefNo with a formula of:
@Unique
Put an editable field called TempRefNo HTML attributes of:
"type=hidden"
and a default formula of
@Unique
then after it have your computed field called RefNo witha formula of:
TempRefNo