Repeatable Table default text in first few rows - InfoPath Dev
in

InfoPath Dev

Repeatable Table default text in first few rows

Last post 08-07-2009 10:19 AM by Hilary Stoupa. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-07-2009 08:56 AM

    Repeatable Table default text in first few rows

    I want to create a repeatable table where the first five rows have text that cannot be changed and then the user can add rows.

    The first five rows will be standard assumptions (I'm creating a change order form) and then the user can add assumptions specific to the form.

     Thanks,

     Amy

  • 08-07-2009 09:04 AM In reply to

    Re: Repeatable Table default text in first few rows

    What you describe would be fairly difficult to do as described.  If you want a portion of the form that cannot be changed, why not put the text you want in a layout table and let the repeating section handle the stuff that can be changed?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 08-07-2009 10:11 AM In reply to

    Re: Repeatable Table default text in first few rows

    Actually, unless I've misunderstood, this sample form should do it. Right click the link in the reply header and select 'save as' to save locally. Right click the saved copy and select design to open in design mode, then preview to try.

    I'm lazy, so it only has 3 read only rows.... I set up the default values for those in Tools / Defaults and then used position() <= 3 for making the field read only. I also had to change the default for the repeating table in the repeating table properties so any newly added rows would be blank.... take a look and let me know if you have questions....

    Hilary Stoupa

  • 08-07-2009 10:17 AM In reply to

    Re: Repeatable Table default text in first few rows

    That will give you several rows with read-only values, but the rows can still be removed :-).  But perhaps that's good enough?
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 08-07-2009 10:19 AM In reply to

    Re: Repeatable Table default text in first few rows

    Ah, I interpreted 'text cannot be changed' to mean the fields in the repeating table couldn't be changed. I didn't consider the ability to remove rows. Good point! 

    Hilary Stoupa

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