<doc>
  <legacy_id>1775</legacy_id>
  <name>newField</name>
  <type>message</type>
  <syntax>
    <example>newField</example>
  </syntax>
  <library></library>
  <objects>
    <field/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Objects &amp; Messages</category>
  </classification>
  <references>
    <command tag="copy">copy Command</command>
    <command tag="paste">paste Command</command>
    <command tag="clone">clone Command</command>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Sent to a new <keyword tag="field">field</keyword> right after it's created.</summary>
  <examples>
    <example>on newField <code><i>-- create a label field</i></code></p><p>  ask "What do you want to label this field?"</p><p>  if it is not empty then</p><p>    put it into myLabel</p><p>    set the name of the target to myLabel</p><p>    lock messages</p><p>    create field</p><p>    put myLabel into last field </p><p>  end if</p><p>end newField</example>
  </examples>
  <description>
    <p>Handle the <b>newField</b> <keyword tag="message box">message</keyword> if you want to create additional <glossary tag="object">objects</glossary>, switch <glossary tag="tool">tools</glossary>, or do other tasks when a new <keyword tag="field">field</keyword> is created.</p><p/><p><b>Comments:</b></p><p>Normally, the <b>newField</b> <keyword tag="message box">message</keyword> is handled at a higher level of the <glossary tag="message path">message path</glossary>, since the newly-created <keyword tag="field">field</keyword> does not yet have a <property tag="script">script</property> unless the <keyword tag="templateField">templateField</keyword> contains one.</p><p/><p>The actual creation is not triggered by the <b>newField</b> <keyword tag="message box">message</keyword>, so <glossary tag="trap">trapping</glossary> the <keyword tag="message box">message</keyword> and not allowing it to <control_st tag="pass">pass</control_st> does not prevent the <keyword tag="field">field</keyword> from being created.</p>
  </description>
</doc>