make field visible depending on value in drop-down list in repeating table - InfoPath Dev
in

InfoPath Dev

make field visible depending on value in drop-down list in repeating table

Last post 11-13-2009 04:24 AM by clubo. 9 replies.
Page 1 of 1 (10 items)
Sort Posts: Previous Next
  • 11-11-2009 07:46 AM

    • clubo
    • Not Ranked
    • Joined on 08-14-2009
    • Posts 15

    make field visible depending on value in drop-down list in repeating table

     Hi All,

    I have a form with a repeating table containing a number of fields one of which is a drop-down list box. Based on the value in the drop-down a hidden field becomes visible.  I have a rule in conditional formatting that displays the hidden field when the drop down contains the text string "Other". However this only works if you choose Other as the first record in the repeating table. If you choose one of the other text values in the drop down first and then add a new row and select Other in the second drop down the hidden field wont display. I would like to know if its possible to reference a hidden field in code and make it visible?

  • 11-11-2009 10:22 PM In reply to

    Re: make field visible depending on value in drop-down list in repeating table

    hi,

    create a new text field and in its default value use fuction

    eval(eval(repeatinggroup,'Concat(my:fieldname,";")'),"..")

    based on the value of this new text field(if it contains "others") hide/unhide your field

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 11-12-2009 01:20 AM In reply to

    • clubo
    • Not Ranked
    • Joined on 08-14-2009
    • Posts 15

    Re: make field visible depending on value in drop-down list in repeating table

     Hi Qazi,

    I will try this and report back. Thanks for the quick reply.

     

  • 11-12-2009 01:45 AM In reply to

    • clubo
    • Not Ranked
    • Joined on 08-14-2009
    • Posts 15

    Re: make field visible depending on value in drop-down list in repeating table

    Hi Qazi,

    Execellent job, worked like a charm. 

    Thank you :)

  • 11-12-2009 04:58 AM In reply to

    • clubo
    • Not Ranked
    • Joined on 08-14-2009
    • Posts 15

    Re: make field visible depending on value in drop-down list in repeating table

     Hi Qazi,

    I think I may have jumped the gun, while it works fine on preview, once I published the form to Form Services on SharePoint, the form cannot be submitted. I get an error telling me there is required fields that need to be filled in. Which is odd because I have no required fields in the form yet. Any ideas would be welcome.

  • 11-12-2009 05:25 AM In reply to

    Re: make field visible depending on value in drop-down list in repeating table

    look into the data sources and check if any of the data fields are having a red * suffixed. Also might be you have some data validations set on.

    attach the template so that we can have a look at it

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 11-12-2009 06:33 AM In reply to

    • clubo
    • Not Ranked
    • Joined on 08-14-2009
    • Posts 15

    Re: make field visible depending on value in drop-down list in repeating table

     Hi Qazi,

    I checked the form and cannot see any validations on unless I'm going blind. All my datafields seem fine too. I've added a link to the form template below.

    pci_test_v0.1.xsn
  • 11-12-2009 09:30 PM In reply to

    Re: make field visible depending on value in drop-down list in repeating table

    your formid field is causing all the problems

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 11-12-2009 09:33 PM In reply to

    Re: make field visible depending on value in drop-down list in repeating table

    change the data type of formid field to string and let me know if this gets resolved. i could not test the form properly as i dont have any access to your network.

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 11-13-2009 04:24 AM In reply to

    • clubo
    • Not Ranked
    • Joined on 08-14-2009
    • Posts 15

    Re: make field visible depending on value in drop-down list in repeating table

     Hi Qazi,

    Thanks again it was the formid field. What I don't understand is the form was submitting fine before I added the eval function to the repeatingHelper field which has nothing to do with the formid field. Anyway thanks for all your help. 

Page 1 of 1 (10 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.