disable the submitt button in Task form - InfoPath Dev
in

InfoPath Dev

disable the submitt button in Task form

Last post 12-29-2008 06:58 AM by Anuma. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 11-25-2008 01:36 PM

    disable the submitt button in Task form

    Hi:

     Is there any way to disable the submitt button in Task form when Submit to Host option is selected and also retain the data(like user comments) in the task form. I have custom workflow, in which I have implemented serveral task forms.

    Once the user approves, his task gets completed and goes the next higher level. Once the user completed his task, i want the submitt button to be disabled and retain his activity(like comments, approve/reject) in the task form.

     Any idea/hints would be a great help.

     Ravi 

  • 11-25-2008 11:39 PM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: disable the submitt button in Task form

    Hi,

    Try with this:

    1. Add one boolean hidden field "Is Approved" to schema.
    2. Bydefault this field value should be "False.
    3. Set this field value as "true" when user approve the form.
    4.  To displable the button add following code in the HTMl page.

    If(Is Approved == "true")
    {
    ButtonID.Disabled = true;
    }

    ButtonID --> Your form submit button Id.

    Anuma Chinthapalli /
    http://www.GGKTech.com
  • 11-26-2008 01:27 AM In reply to

    Re: disable the submitt button in Task form

    Hi:

    tahnk you very much for your reply.

     

    It would be great if you can explain in bit detail. So here is the thing, I need to do.

     1. Add one hidden textbox(name: IsApproved) to the task form.

    2. Set its default value to false.

    3. On submit button, add a rule to set this textbox field value to true.

    4. Now, i need add the code in HTML page. I am not sure how to add this code. It you can explain me this point, it would be great.

    Thanks again!

    Ravi

  • 12-23-2008 07:22 AM In reply to

    Re: disable the submitt button in Task form

    It got fixed. Thanks! Ravi
  • 12-29-2008 06:58 AM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: disable the submitt button in Task form

    Glad to hear you got it working.

    Anuma Chinthapalli /
    http://www.GGKTech.com
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.