tShowInEditForm(true);
</code></pre>
<h3 id="show-a-field-in-the-new-form">Show a Field in the New Form<a class="headerlink" href="#show-a-field-in-the-new-form" title="Permanent link">&para;</a></h3>
<p>Use the setShowInNewForm method to add a field to the display form.</p>
<pre><code class="language-TypeScript">import { spfi } from &quot;@pnp/sp&quot;;
import &quot;@pnp/sp/webs&quot;;
import &quot;@pnp/sp/lists&quot;;
import &quot;@pnp/sp/fields&quot;;

const sp = spfi(...);

// show field called 'My Fiel