in

InfoPath Dev

New added control became disabled when I use to open old form!!!

Last post 10-08-2008 03:32 PM by infopathNewbie. 23 replies.
Page 1 of 2 (24 items) 1 2 Next >
Sort Posts: Previous Next
  • 03-03-2008 11:45 PM

    New added control became disabled when I use to open old form!!!

    I had requested to modify 3 template, let say template A, B and C. I added a drop down list control for each of the template and publish to the sharepoint but there is one problem happen regarding to the old form in sharepoint.

    Since template A is no problem, I don't know why when I open the old form by using template B and C then the new added drop down list (other control also the same) became disabled.

    Can somebody tell me what happen and any solution for this problem? thx

    Note: The problem happen only when I open the old form (form before the updated template), new form no effect.

     

    Filed under:
  • 03-04-2008 06:37 AM In reply to

    Re: New added control became disabled when I use to open old form!!!

    usually this is because the field which the new dropdown was bound to does not exist in the old forms.

    Check which field the drop down is bound to, where it stores its data.  Is this field in the previous forms or is it a new field?

    My guess is it is new and therefore since there is no where to store the value in the old form then it disables itself.

  • 03-04-2008 11:28 PM In reply to

    Re: New added control became disabled when I use to open old form!!!

    Now I can confirmed that the drop down in the old form does not bound to the new field.

    So, is it any way to make it bound to the new field?

    Filed under:
  • 03-04-2008 11:49 PM In reply to

    Re: New added control became disabled when I use to open old form!!!

    There is a way but it requires code in the form load event which checks for the missing fields and creates the fields in old form's xml.

    I am not sure how it is done but have worked with forms which had it.

  • 03-05-2008 06:18 PM In reply to

    Re: New added control became disabled when I use to open old form!!!

    Clay,

    Can you show me a simple coding (or guideline) on how to check the missing field and create the field in old form's xml?

    Because I'm quitea new bird in using infopath, so hope that you able to give me some advice for this infopath. Thanks a lot!

    Filed under:
  • 03-05-2008 06:41 PM In reply to

    Re: New added control became disabled when I use to open old form!!!

    I would also be very interested to get code to do this. I am new as well and I have a form that may need regular changes based on the users. I have googled everything I can think of with no good hits.
  • 03-05-2008 11:05 PM In reply to

    Re: New added control became disabled when I use to open old form!!!

    You should be able to build a form that can be dynamic. this case is where additional fields are added after the form is in production.

    Unfortunately I do not have the code to do this.

    If you would like to purchase a support credit you could get a developer who does to help you with this.  http://www.qdabra.com/products_all.asp?cat=12 

  • 03-12-2008 02:50 PM In reply to

    • leiya
    • Not Ranked
    • Joined on 09-03-2007
    • Posts 7

    Re: New added control became disabled when I use to open old form!!!

    I just encountered the same problem.  Just found a solution too.  :)

    This happens when you choose 'Do nothing' on version upgrade. To make the fields selectable/editable, republish the form with the following options. Go to Tools -> Form Options -> Versioning -> On version upgrade, choose "Automatically upgrade existing forms". Once the new version is uploaded in Central Admin, go back to your old forms, you should see your new fields as editable.

    Hope this helps.

    Yanling

  • 03-12-2008 02:56 PM In reply to

    Re: New added control became disabled when I use to open old form!!!

    SWEET!!  Never would have found that.  Works like a charm!
  • 03-12-2008 02:56 PM In reply to

    Re: New added control became disabled when I use to open old form!!!

    Works Great!

  • 09-26-2008 04:09 PM In reply to

    Re: New added control became disabled when I use to open old form!!!

    It doesn't work for me.  My templates are fully trusted.  When I installed the new version, the new controls still disabled.

    Has anyone else found a different solution?

    Thanks

  • 10-01-2008 06:16 AM In reply to

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

    Re: New added control became disabled when I use to open old form!!!

    Hi,

    Open “upgrade.xsl” in visual studio and search for your newly added field. If that field in not there in the upgrade.xsl then add it manually in upgrade.xsl file.  

     

    CH.Anuma / http://www.GGKTech.com
  • 10-02-2008 05:54 PM In reply to

    Re: New added control became disabled when I use to open old form!!!

    Thanks for replying.

    The newly added field is in the "upgrade.xsl".  It shows on the old form, but it's disabled.

  • 10-02-2008 06:46 PM In reply to

    • leiya
    • Not Ranked
    • Joined on 09-03-2007
    • Posts 7

    Re: New added control became disabled when I use to open old form!!!

    make sure the control is itself not disabled by checking its properties....or that some condition disables it.

  • 10-03-2008 04:00 AM In reply to

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

    Re: New added control became disabled when I use to open old form!!!

    Make sure your newly added field should be there in the sampledata.xml and template.xml files.

     

    CH.Anuma / http://www.GGKTech.com
Page 1 of 2 (24 items) 1 2 Next >
Copyright © 2003-2007 Qdabra Software. All rights reserved.
View our Terms of Use.