How to add prefix to the field value

Question

How to add a character or several characters at the beginning of the field value.

 

Answer

A simple script could be used in this field in order to address this task:

  1. Create a new Rule in this field, it should be a Script rule.
  2. Make sure to remove the Read Only flag from that field:mceclip0.png
  3. Use a simple script like this in order to change the field value (JScript.Net is used here):
    Context.Field("Name of the Field").Text = "prefix" + Context.Field("Name of the Field").Text;

 

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.