a!Submitlink value is not saving when executing in site

Certified Senior Developer

Hi All,

I am using a!Submitlink function to show with an edit icon. When the user clicked on the icon I am setting the value to true for that submit link variable. Whi I am testing that in the Interface rule it is working as expected. But, when I am executing the same on the sites the value is not saving. Please see the code and screenshots attached below.

a!richTextIcon(
icon: "EDIT",
caption: "edit",
link: a!submitLink(
value: true(),
saveInto: a!save(ri!Edit, true())),
size: "MEDIUM"
)

On Interface Rule after clicking on edit symbol:

On sites after clicking on edit symbol:

  Discussion posts and replies are publicly visible