<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Need edit the Paragraph field when click on Edit button</title><link>https://community.appian.com/discussions/f/new-to-appian/19677/need-edit-the-paragraph-field-when-click-on-edit-button</link><description>Hello All, 
 I have the below requirement. 
 In section layout I need give the paragraph field for comments sections. Initially it should be show in a read only. 
 I need to put edit button after the comments field when click on Edit button it should</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Need edit the Paragraph field when click on Edit button</title><link>https://community.appian.com/thread/106440?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 16:39:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:de4d1637-f5c7-45b1-80e4-7ba37d54b19f</guid><dc:creator>Chris</dc:creator><description>[quote userid="63279" url="~/discussions/f/new-to-appian/19677/need-edit-the-paragraph-field-when-click-on-edit-button/105740#105740"]&lt;p&gt;hi ,chis&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;what if what we have multiple comments in a for each . but i want to edit the same on loogedinUser basis.&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;I would suggest to start your own thread, likely your scenario is different and this thread is a few years old.&amp;nbsp; Add some details on your use case and we are happy to take a look.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need edit the Paragraph field when click on Edit button</title><link>https://community.appian.com/thread/105740?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 13:49:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bab143b4-f745-4594-8cd0-54757228ade9</guid><dc:creator>saurabh sharma</dc:creator><description>&lt;p&gt;hi ,chis&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;what if what we have multiple comments in a for each . but i want to edit the same on loogedinUser basis.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need edit the Paragraph field when click on Edit button</title><link>https://community.appian.com/thread/76919?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 08:51:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da9742ae-5ee3-42a0-8a82-228c42b7add3</guid><dc:creator>Poranki Ramaraju</dc:creator><description>&lt;p&gt;Thank you Chris.... Its the best solution for my query.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need edit the Paragraph field when click on Edit button</title><link>https://community.appian.com/thread/76918?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 08:51:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0eb3aa73-7620-4d99-b444-87d99a1453c8</guid><dc:creator>Poranki Ramaraju</dc:creator><description>&lt;p&gt;Thank you Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need edit the Paragraph field when click on Edit button</title><link>https://community.appian.com/thread/76894?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 15:47:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:59518618-93e6-44bb-a282-bedcdf2ee4d4</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;As an example of Mike&amp;#39;s suggestion (which I would recommend as well):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!enableCommentEditing: false,
  local!CDT: {comments: &amp;quot;initial comments here&amp;quot;}, /* This will be a rule input with your comments! */
  
  {
    a!paragraphField(
      label: &amp;quot;Comments&amp;quot;,
      value: local!cdt.comments,
      saveInto: local!cdt.comments,
      readOnly: not(local!enableCommentEditing),
      required: local!enableCommentEditing
    ),
    a!buttonArrayLayout(
      align: &amp;quot;START&amp;quot;,
      buttons: {
        a!buttonWidget(
          label: &amp;quot;Edit&amp;quot;,
          disabled: local!enableCommentEditing,
          value: true,
          saveInto: {
            local!enableCommentEditing,
            a!save(local!CDT.comments,null)
          }
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need edit the Paragraph field when click on Edit button</title><link>https://community.appian.com/thread/76893?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 15:36:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bbdf6983-b2ec-4343-9746-e269c56cde62</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The one hint I can easily provide for you here is that you should use local variables (i always recommend that people use local variables &lt;em&gt;extremely liberally&lt;/em&gt; to help abstract on-form functionality, data, etc).&amp;nbsp; In this case you would declare a variable at the beginning i.e. &amp;quot;local!enableCommentEditing&amp;quot; with a value of &lt;strong&gt;false()&lt;/strong&gt;, which you will then also set as either the &amp;quot;disabled&amp;quot; or &amp;quot;readOnly&amp;quot; setting on your paragraph field (per your preference), and toggle this value to true with the click of your desired button/link/whatever.&amp;nbsp; You can handle the overwriting of the original comment text either in an additional &amp;quot;saveInto&amp;quot; of the button, or in the saveInto of the editable paragraph, depending on the finer details of your use case - there&amp;#39;s no &amp;quot;one right way&amp;quot; here.&lt;/p&gt;
&lt;p&gt;Further I would suggest you invest some time in practicing how on-form elements work together in various ways, just in general, because even a use case this seemingly complicated should be fairly easy to implement for someone with enough practice.&amp;nbsp; One thing I like to do personally, which helped me learn both when I was new as well as with ongoing new functionality -- is to think of a new use case (like yours here), then develop a &amp;quot;test&amp;quot; / &amp;quot;fake&amp;quot; interface just for myself, where I experiment and try to accomplish the goal, with the help of the &lt;a href="https://docs.appian.com/suite/help/20.3/Appian_Functions.html"&gt;Appian Functions Documentation&lt;/a&gt; (among others) where I&amp;#39;m not sure how to accomplish certain key pieces.&amp;nbsp; Additionally, it is then a lot easier for us on the forum to provide meaningful feedback to questions that are more specific in nature and/or ones where you have a code sample and screenshots of what you&amp;#39;ve tried and what isn&amp;#39;t working for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>