Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Button onclick not working in the calculated field

$
0
0

Hi Everyone,

I have to add the button in the calculated field through list definition. On click of button it should call the java script function. I can add the button but on click event is not working.

this is my code:

<Field Name="Accept" ID="{1F7328C7-D7F0-4B94-BB15-01859CD28CF2}" DisplayName="AcceptorDecline" Type="Calculated" ResultType="Number" ReadOnly="TRUE" JSLink="/_layouts/15/CCAR.SP.Common.Lists/UserRecertification/UserRecertificationScripts.js">
        <Formula>
          ="&lt;div id='divAccept'&gt; &lt;input type='button' name='btnAccept' id='btnAccept' value='Approve'onclick=""UpdateAcceptorDecline('"&amp;[URID]&amp;"','Approve')""/&gt;
          &lt;/div&gt;"
        </Formula>
        <FieldRefs>
          <FieldRef Name="URID" />
        </FieldRefs>
      </Field>

Please help me on this issue. Thanks in advance.

 


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>