Alexander Bautz

Forum Replies Created

Viewing 15 posts - 61 through 75 (of 4,713 total)
  • Author
    Posts
  • in reply to: Calling an action more than once inside a rule #38147
    Alexander Bautz
    Keymaster

      Hi,
      Sending multiple emails can be done – just click “Add” below the first one to add another.

      I’ll add similar functionality to the “Call a function” step.

      As mentioned earlier I’m not able to recreate the issue you reported earlier regarding setting a people picker and using that people picker in an email – could you email me some more information (screenshots) so I can replicate the exact same setup as you have?

      Alexander

      in reply to: Modern DFFS not loading #38144
      Alexander Bautz
      Keymaster

        It seems like Microsoft has again rolled out a new update to the List View UI that breaks Command Set Extension solutions (like the Modern DFFS). I have filed two bug reports with Microsoft related to the latest rollout and hope they respond quickly to fix the issues.

        You can track any updated from Microsoft on the issues here:
        https://github.com/SharePoint/sp-dev-docs/issues/9953
        https://github.com/SharePoint/sp-dev-docs/issues/9954

        Sorry for the inconvenience.

        Best regards,
        Alexander

        in reply to: Modern DFFS not loading #38142
        Alexander Bautz
        Keymaster

          Can you email me some screenshots of the page with F12 > Console open when you load the page?

          Alexander

          in reply to: Custom JS examples #38138
          Alexander Bautz
          Keymaster

            Hi,
            You can do this by creating a rule that triggers on “Form is loaded” and in the “if yes” select the “Call a function”. Add the name of the function like this:

            hideEmptyFields
            

            Now add this to your Custom JS and change the “arr” to include the FieldInternalName of the fields you want to check for empty.

            function hideEmptyFields() {
              var arr = ["Field1", "Field2", "Field3", "Field4"];
              arr.forEach(fin => {
                if (String(getFieldValue(fin)) === "") {
                  document.querySelectorAll("div[data-fin='" + fin + "']").forEach(row => {
                    row.style.display = "none";
                  });
                }
              });
            }
            

            Alexander

            • This reply was modified 4 months ago by Alexander Bautz. Reason: Fixed wrong trigger name
            in reply to: Modern DFFS not loading #38137
            Alexander Bautz
            Keymaster

              Hi,
              According to the feedback in this github issue the bug is confirmed and the status is set to “rolling in production”, but I’m not sure when it will be actually rolled out.

              Alexander

              in reply to: Make sure email has a valid recipient #38134
              Alexander Bautz
              Keymaster

                Hi,
                Yes, this means these email can only be sent to users registered in the SharePoint site collection. To send to a distribution list using this email method you will have to convert it to a mail enabled security group.

                It is not possible to change the “From” address.

                To be able to send to external / non-members of the site collection you must set up a FLOW and process the email there.

                This is not limitations in DFFS, but in the built-in SharePoint REST API used to process the emails.

                Alexander

                in reply to: Various Bugs and Enhancement Requests #38131
                Alexander Bautz
                Keymaster

                  Thanks for the feedback.

                  I’ll fix the background color on the sticky tabs in the next release, but in the meantime you can fix it by adding this custom css:

                  .pivotSticky_SUFFIX > div[role='tablist']{
                    background-color: #ffffff;
                  }
                  

                  I’ll add the “Is empty” and “Is not empty” triggers in the next version.

                  You can use nested conditions in the main trigger conditions, but I think adding the nesting of conditions inside the “if yes” and “if no” sections will be a bit to complex so you will have to add more rules to handle the different “sub conditions”.

                  I looked into the “random issue” with the vLookup comfig earlier (I think it was you that mentioned it), but could unfortunately not reproduce it. Did you copy / import the vLookup config or did you create it from scratch?

                  The grid issue is related to the “row” being rendered using display:flex. It has a default “wrap to new line” if the outer container cannot fit the contents. Can you email me some screenshots so I can look into it and see if it is a bug?

                  Inline editing in vLookup is unfortunately a bug job to implement so I don’t have time for that at the moment.

                  Can you give me some more information about adding the class to the fields? – do you mean like adding a classname in the “container styling” property of a field?

                  Alexander

                  in reply to: Make sure email has a valid recipient #38130
                  Alexander Bautz
                  Keymaster

                    When using the SP.Utilities.Utility.SendEmail endpoint the user must be in the User information list in the SiteCollection for it to work (must be added to a SharePoint group).

                    I’ll take a look and see if I might be able to run ensureUser on the person in the To-field (to add the user if it is not already in the User Information list) before processing the email in a later version.

                    Alexander

                    in reply to: Customize Loading DFFS message #38129
                    Alexander Bautz
                    Keymaster

                      Hi,
                      I forgot to test it in the WebPart, but will have it fixed hopefully over the weekend.

                      Alexander

                      in reply to: Make sure email has a valid recipient #38126
                      Alexander Bautz
                      Keymaster

                        Hi,
                        Is the email address in the “To” field a valid user in the same domain as the SharePoint site where you are sending the email?

                        Alexander

                        in reply to: Schedule email to be sent on later date #38117
                        Alexander Bautz
                        Keymaster

                          Hi,
                          I don’t have an example, but found this that basically explains how to set it up: https://sharepoint.stackexchange.com/questions/277676/trigger-email-when-task-due-date-equals-today

                          Regarding the variables in Custom JS: Those would not be accessible so you would have to write whatever data you want to use in the email to a field in your list item and then pick it up in the FLOW email step. You could create a multiline plain text field and write the email BODY as as HTML string in the field and use that as body in the email.

                          Alexander

                          in reply to: Schedule email to be sent on later date #38114
                          Alexander Bautz
                          Keymaster

                            There is unfortunately no such feature in the Modern DFFS because emails are sent using the built in REST API.

                            In the Classic DFFS you had the option to do this by writing the email to a custom list where a SharePoint Designer Workflow triggered and paused the sending until the date was reached.

                            The way you would do this in SharePoint Online is to set up a Power Automate FLOW directly on that list that runs once a day and sends emails on items where the due date is reached.

                            Alexander

                            in reply to: Custom JS examples #38109
                            Alexander Bautz
                            Keymaster

                              I’ll look into it and see if I can let you override all strings. I’ll try to get a new version out later this week.

                              Alexander

                              in reply to: Adding table borders #38108
                              Alexander Bautz
                              Keymaster

                                #sbs_FieldTable_YourFieldNameHere is one field (label and body) – and the YourFieldNameHere keyword should be replaced with the FieldInternalName of that field.

                                If you want to add a border around the entire line (with side-by-side fields) you can use this format (where the number 100 is the side-by-side index used in the tab):

                                #sbs_OuterTable_100 {
                                    outline: 2px red dashed;
                                    outline-offset: 2px;
                                }
                                

                                Alexander

                                in reply to: Customize Loading DFFS message #38105
                                Alexander Bautz
                                Keymaster

                                  Hi,
                                  Good idea, I’ll add it to the next version by adding a textarea in the Misc tab where you can add a custom message for each form.

                                  Alexander

                                Viewing 15 posts - 61 through 75 (of 4,713 total)