Getting rid of the "Insert item" button in repeating sections. - InfoPath Dev
in

InfoPath Dev

Getting rid of the "Insert item" button in repeating sections.

Last post 06-18-2009 02:14 PM by c.lee. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-09-2009 03:10 AM

    • RuudC
    • Not Ranked
    • Joined on 03-09-2009
    • Posts 4

    Getting rid of the "Insert item" button in repeating sections.

    Hello fellow InfoPath developers. I've been working with InfoPath for quite a while now, and there's one annoying problem I cannot solve.

    My form templates include some nested repeating sections and normal sections. I want none of them to have "Insert item" buttons, since I've made custom ones for that.

    But for some reason, the outer most repeating section will always have this button, even though I didn't enable it. The button doesn't work either, and right clicking in the section will just highlight it and show Cut/Paste. Yet this is very annoying, since it will confuse users who click on the section and see the whole page highlighted. I want this Item insert button gone, and preferably make the repeating section unselectable. I know this should be possible, since the inner fields do exactly what I want. It's just the most outer section causing problems.

    How do I fix this? This could be a bug, but I'm not sure.

    Here's a screenshot of the design: http://jwn.nationvoice.com/1.PNG

    It works with cascading drop down boxes and conditional formatting.

    And this is how it looks to the user when rightclicking the section: http://jwn.nationvoice.com/2.PNG

    And yes, I've ensured that none of the sections have "Allow users to insert and delete" enabled.

    Regards,

    Ruud

  • 03-09-2009 10:30 PM In reply to

    Re: Getting rid of the "Insert item" button in repeating sections.

    Hi,

    We can delete that by changing the view.xsl.

    1. Open the view.xsl.

    2. Search for the outer repeating table xpath. And below that you will find

    <div class="optionalPlaceholder" ...

    3. Remove this line. Save it.

    4. Now open the form.

    Swathip
    www.ggktech.com
  • 03-10-2009 01:55 AM In reply to

    • RuudC
    • Not Ranked
    • Joined on 03-09-2009
    • Posts 4

    Re: Getting rid of the "Insert item" button in repeating sections.

    Thanks, that did get rid of the buttons.

    But sadly, the repeating field is still selectable by the user, and includes a copy control. This is a little confusing for the end user, since every time he/she clicks anywhere except one of the control fields, the whole page gets selected. I wonder if there's anything to do against this. I messed around a bit with the xsl file, but no succes.

  • 06-18-2009 02:14 PM In reply to

    • c.lee
    • Not Ranked
    • Joined on 06-17-2009
    • Posts 1

    Re: Getting rid of the "Insert item" button in repeating sections.

    I am facing the same issue.  My form consists of 2 repeating sections, one nested within another.  If I enable the property "Allow users to insert/delete rows" in the child repeating section, then the parent repeating section becomes selectable and the user can access the "Insert Section" commands that insert into the child repeating section.  Furthermore, cut/copy/paste commands are also enabled in the paren repeating section.  If I disable the "Allow users to insert/delete rows" property in the child repeating section then this no longer happens.

     Has anyone determined the cause of this issue?

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