Page 1 of 2

Approval Button

Posted: 17 Sep 2018
by ksertkaya
Hello,

How can I set "Outcome" field? It doesn't work.

Outcome's internal name is "WorkflowOutcome"
Screenshot_59.png
Screenshot_59.png (75.46 KiB) Viewed 1908 times
Best Regards.

Re: Approval Button

Posted: 17 Sep 2018
by ksertkaya
Why I can't set this field?
Screenshot_61.png
Screenshot_61.png (15.92 KiB) Viewed 1904 times

Re: Approval Button

Posted: 17 Sep 2018
by AlexZver
Hi!

What type of field do you use? Is it set to ReadOnly in the designer? Do you want a value to be stored in this field?

Re: Approval Button

Posted: 27 Sep 2018
by ksertkaya
Hi Again,

I start task process in 2010 workflow but I can't open in SpForm Designer. How can I do this?


Screenshot_64.png
Screenshot_64.png (1.76 KiB) Viewed 1879 times
Screenshot_65.png
Screenshot_65.png (15.93 KiB) Viewed 1879 times

Re: Approval Button

Posted: 27 Sep 2018
by AlexZver
Hi!

As I can see, the form is designed with Infopath. You should restore a default form with SharePoint Designer and then resave the form with Forms Designer.

Re: Approval Button

Posted: 28 Sep 2018
by ksertkaya
Thank you!

I can't update this column. Why?
Screenshot_67.png
Screenshot_67.png (39.54 KiB) Viewed 1867 times
Approve button "onclick"
Screenshot_68.png
Screenshot_68.png (11.74 KiB) Viewed 1867 times
Not textbox?
Screenshot_69.png
Screenshot_69.png (8.15 KiB) Viewed 1867 times

Re: Approval Button

Posted: 02 Oct 2018
by ksertkaya
I can't approve task in SpForm Designer.

Anyone help?

Re: Approval Button

Posted: 02 Oct 2018
by AlexZver
Hi!

I'm sorry, I've missed your post. We are working to make these incidents as rare as possible, but if it occasionally happens, feel free to write on our support mail: support@spform.com.

I'm proceeding to fix your issue right now, just give me a moment.

Re: Approval Button

Posted: 02 Oct 2018
by AlexZver
Hi!

It's quite a tricky issue, please follow these steps:

1) Remove the Outcome field from your Edit form.

2) Add HTML control instead, add this code in its Content:

Code: Select all

 <div class="workflow-outcome-field">
    <SharePoint:FormField id="WorkflowOutcomeField"
        FieldName="WorkflowOutcome"
        runat="server"
        ControlMode="Edit"
        __designer:bind="{ddwrt:DataBind('u','WorkflowOutcomeField','Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@WorkflowOutcome')}"
    />
</div>  
Notice that you should replace 'WorkflowOutcome' with your Outcome field internal name.

3) If you want to make a field hidden on the Edit form, just add this CSS class in CSS Editor:

Code: Select all

.workflow-outcome-field {
    display:none;
}
4) To populate this field use this code instead of yours:

Code: Select all

$('.workflow-outcome-field').find('input').val('Approved');
I hope this helps.

Re: Approval Button

Posted: 03 Oct 2018
by ksertkaya
Thank you Alex Code is working!

But task is still "In Progress", not "Completed". How can we end this task process?
Screenshot_70.png
Screenshot_70.png (21.49 KiB) Viewed 1836 times