Benjamin Hawcroft

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: Rule to match blank value #6276
    Benjamin Hawcroft
    Participant

      I thought I had but it may have been lost due to other issues with my rules. Thanks for the confirmation !

      in reply to: CSS to remove space between rows in Side by Side Fields #6255
      Benjamin Hawcroft
      Participant

        Thank you ! That worked brilliantly 🙂

        in reply to: Rule to match blank value #6250
        Benjamin Hawcroft
        Participant

          Ah ha ! I just worked it out by adding a | 🙂

          in reply to: Error when opening editform #6243
          Benjamin Hawcroft
          Participant

            Yes. In my case I have set the linkToItem value on a field in order to use a field other than the title field as the link.

            (ie. the fullname field in a contacts list instead of the lastname/title).

            What I have discovered is that I needed to add the LinkTitleNoMenu field into each of my views in order for the moved link to include the contenttypeid= value.

            In SharePoint Designer I then edited all of my views and added Explicit=”TRUE” as a field property for the LinkTitleNoMenu field in order to hide it.

            I could not find any easier way to do this but hopefully this helps if anyone else finds themselves down the same rabbit hole 🙂

            in reply to: Error when opening editform #6231
            Benjamin Hawcroft
            Participant

              Apologies for the forum spam.

              I think I have a lead on my issue. I have been moving the item link in a default sp2013 contact list from last name to ‘fullname’. I think if I do this and have a view that does not also include the lastname(with link to item) in it, then my link does not have the contenttype in the url.

              in reply to: Error when opening editform #6229
              Benjamin Hawcroft
              Participant

                This seems to be related to using tabs in the display form. I have just made a basic tab and left it to show all fields.

                This particular list is a sp2013 contacts list with some extra columns , event handlers etc. So content types are active.

                Does the following indicate DFFS is having trouble determining the content type ?

                Microsoft.SharePoint.SPContext.GetContentTypeThroughQueryString(String strIdx) +384

                If I select the item and use the ribbon to edit it works.
                If I select the item and use the ribbon to view and then use either the ribbon or the DFFS button to edit it works.

                If I click to view the item and then try to use either the ribbon or DFFS button to edit it fails with that error.

                in reply to: Error when opening editform #6228
                Benjamin Hawcroft
                Participant
                  in reply to: Error when opening editform #6226
                  Benjamin Hawcroft
                  Participant

                    This is the link to the display form (I am using modal forms).
                    http://example.com/kgcontacts/_layouts/15/listform.aspx?PageType=4&ListId=%7BDA04CBD8%2D220D%2D44DB%2D9151%2DBE54BF1DB0C9%7D&ID=5818&ContentTypeID=

                    Here is the url of the modal with the error –>
                    http://example.com/kgcontacts/Lists/Contacts/EditForm.aspx?ID=5818&Source=http%3A%2F%2Fgcmdevportal2013%2Ekrys%2Dglobal%2Ecom%2Fkgcontacts%2FSitePages%2FHome%2Easpx&ContentTypeId=&IsDlg=1

                    `[FormatException: Input string was not in a correct format.]
                    System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14281985
                    System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +305
                    Microsoft.SharePoint.SPContext.GetContentTypeThroughQueryString(String strIdx) +384
                    Microsoft.SharePoint.SPContext.ContentTypeInternal(String contentTypeId) +284
                    Microsoft.SharePoint.WebPartPages.ListFormWebPart.get_TemplateName() +71
                    Microsoft.SharePoint.WebPartPages.ListFormWebPart.ShowRibbon() +453
                    Microsoft.SharePoint.WebPartPages.ListFormWebPart.OnInit(EventArgs e) +349
                    System.Web.UI.Control.InitRecursive(Control namingContainer) +186
                    System.Web.UI.Control.AddedControl(Control control, Int32 index) +189
                    System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPartHelper(WebPart webPart) +402
                    System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPart(WebPart webPart) +2736250
                    Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartWithRetry(WebPart webPart) +939
                    Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts) +8612
                    Microsoft.SharePoint.WebPartPages.SPWebPartManager.LoadWebParts() +156
                    Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +328
                    System.EventHandler.Invoke(Object sender, EventArgs e) +0
                    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2324

                    in reply to: Error when opening editform #6180
                    Benjamin Hawcroft
                    Participant

                      As best I can see by starting with a blank configuration, just adding a DFFS display form with a tab causes the error above. Removing the tab and all seems to be well.

                      Should display forms be able to use tabs ?

                      in reply to: CSS to line up Side by Side Fields #6176
                      Benjamin Hawcroft
                      Participant

                        In case this helps someone else…

                        This is the styles I used to mostly line up two columns of side by side fields on a ‘new’ form. This is entered in the ‘misc’ section.

                        .sbs_FieldTable{
                        width:260px;
                        }
                        .sbs_FieldTable td.ms-formlabel{
                        width:auto !important;
                        padding-left:20px;
                        }
                        .sbs_FieldTable td.ms-formlabel h3.ms-standardheader nobr{
                        white-space:nowrap !important;
                        }
                        .sbs_FieldTable td.ms-formbody{
                        width:100% !important;
                        }
                        .sbs_FieldTable input{
                        width:100% !important;
                        }
                        .sbs_FieldTable select{
                        width:100% !important;
                        }

                        in reply to: CSS to line up Side by Side Fields #6175
                        Benjamin Hawcroft
                        Participant

                          Apologies. I had a typo on whitespace. Should have been white-space.

                          in reply to: CSS to line up Side by Side Fields #6174
                          Benjamin Hawcroft
                          Participant

                            I think I have gotten closer :

                            .sbs_FieldTable{
                            width:300px;
                            }
                            .sbs_FieldTable td.ms-formlabel{
                            width:auto !important;
                            padding-left:10px;
                            }
                            .sbs_FieldTable td.ms-formlabel h3.ms-standardheader nobr{
                            whitespace:nowrap !important;
                            }
                            .sbs_FieldTable td.ms-formbody{
                            width:100% !important;
                            }
                            .sbs_FieldTable input{
                            width:100% !important;
                            }
                            .sbs_FieldTable select{
                            width:100% !important;
                            }

                            Except I am having trouble getting a nowrap working on the label as it seems to be overridden by a style coming from DFFS_FrontEnd.css.

                            Thank you for the help ! The .sbsFieldTable got me heading in the right direction.

                            in reply to: CSS to line up Side by Side Fields #6172
                            Benjamin Hawcroft
                            Participant

                              Thanks Alexander ! I tried that but it does not seem to be getting the fields. I will play around some more but have also attached a screen shot of what I am seeing after applying that with 50px each on a new form.

                              Attachments:
                            Viewing 13 posts - 1 through 13 (of 13 total)