Search Results for 'list form'

Home Forums Search Search Results for 'list form'

Viewing 15 results - 211 through 225 (of 1,358 total)
  • Author
    Search Results
  • #35355
    SteveE
    Participant

      Ever want to hide certain options in the ribbon in DispForm? I do!

      Actions has options for “Alert Me” and “Workflows” which I don’t need users to see. You can hide these by adding this to the Custom CSS tab:

      #Ribbon\.ListForm\.Display\.Actions
      {display:none;}

      Another item I don’t need users to see is “Shared With”. There are two sizes so you need to add this to Custom CSS:

      #Ribbon\.ListForm\.Display\.Manage-LargeMedium-1-1,
      #Ribbon\.ListForm\.Display\.Manage\.ManagePermissions-Medium
      {display:none;}

      Happy hiding!

      Alexander Bautz
      Keymaster

        Hi,
        You can use a script like this example. You must run it in the console of one of your forms in each subsite as it uses some code from DFFS.

        Code example:

        var allConfig = spjs.utility.queryItems({
            "listName": "SPJS-DynamicFormsForSharePoint",
            "query": "<Where><IsNotNull><FieldRef Name='Title' /></IsNotNull></Where>",
            "viewFields": ["ID", "Title", "blob"]
        });
        jQuery.each(allConfig.items, function (i, item) {
            if (item.Title.charAt(0) === "/" && item.blob !== null && item.blob.charAt(0) === "{") {
                var config = JSON.parse(item.blob);
                // Use console.log to view the config in the console to locate the parameters you want to change
                // console.log(config);
                // This example changes redirEditToDisp to false
                if (config.redir.redirEditToDisp) {
                    config.redir.redirEditToDisp = false;
                    // Backup current config
                    var backupRes = spjs.utility.addItem({
                        "listName": "SPJS-DynamicFormsForSharePoint",
                        "data": { "Title": "[backup]" + item.Title, "blob": item.blob }
                    });
                    if (backupRes.success) {
                        // Apply changes if config was backed up successfully
                        var updateRes = spjs.utility.updateItem({
                            "listName": "SPJS-DynamicFormsForSharePoint",
                            "id": item.ID,
                            "data": { "blob": JSON.stringify(config) }
                        });
                        if (updateRes.success) {
                            console.log("Made backup and updated config for " + item.Title);
                        }
                    } else {
                        console.log("*** Failed to backup config for " + item.Title + ": " + backupRes.errorText + ". No changes were made to the config.");
                    }
                }
            }
        });

        This script will loop trough ALL configs in the current site and make changes. It will make a backup of the original config in case you need to roll back. If so, open the “Export, import and restore” tab and hit “Browse restore points and deleted configurations”.

        Please read the comments in the code and make changes to match the changes you want to make.

        Alexander

        #35281

        In reply to: List item record lock

        Alexander Bautz
        Keymaster

          You can use the Check out list items functionality in the Misc tab in EditForm.

          Alexander

          #35226
          Harsh
          Participant

            Thanks, @SteveE
            You understand describe perfectly, cheers for you….!

            I get the point of switching tab on toggle,

            Now i wanted to switch tab bases on list view,
            For example i have two custom views in list,
            So total views in list,
            1. All items
            2. View1
            3. View2

            Now, when user select View1 in list and click on Add Items, DFFS form with Tab0 design should display, and for View2 form with Tab1 should display.

            How can i achieve this?

            Amal Vellappillil
            Participant

              I have the “Return to DispForm when editing an item and NOT opening the form in a dialog” checked under “Misc” tab. Is there a way to bulk update all list configurations in a site to have this option unchecked?

              Amal Vellappillil
              Participant

                Hi Alex,
                I have a feature request.

                Current Behavior:
                – Current view = View 1 (not the default view)
                – User clicks into a record from that view.
                – User clicks on edit to edit the record. Then saves the record.
                – User click on close button in display form.
                – User is taken back to list view. But this time user is taken to the default view instead of “View 1” (the originating view)

                Is it possible to have the user sent back to the originating view when the close button is clicked on “after editing a record from display form”?

                Thank you,
                Amal Vellappillil

                #35201
                SteveE
                Participant

                  I think when you say “view” it’s the confusing part (to me at least).

                  If you are saying the form changes when you click a button, this can easily be accomplished by creating a toggle and based on if it is set to “Yes/On” the form can make a new tab or section appear.

                  If you are saying that based on a list view that you are starting from, when you enter a new item (or then access it in the future) the form will display differently, I have code that will find the view source and alter the form.

                  #35189
                  Harsh
                  Participant

                    Hello,
                    We have task to convert SP10 on premise InfoPath form to DFFS.
                    In info path there is different form as per views for single list.

                    Please see attached image, there is different view for single list in info path form.

                    How can i achieve this functionality in DFFs?

                    Attachments:
                    #35158
                    Alexander Bautz
                    Keymaster

                      There is unfortunately nothing you can do in DFFS to use an actual lookup field as this will not render in the form when the source list exceeds 5000 items.

                      But you can still use the lookup list from a DFFS enabled form by using a single line of text field paired with either the Autocomplete, Lookup or Cascading dropdown plugin.

                      Alexander

                      #35156
                      HYM
                      Participant

                        Hi Alex, how are you? any idea how to resolve a lookup field pointing to a list with more than 5000 records? I am trying to find a workaround on quick edit view and on the new/edit form. PowerApps custom forms will solve this? Dffs can solve this?

                        Alexander Bautz
                        Keymaster

                          Hi,
                          In the DFFS form the vLookup column is populated with a string combining the current user id and the current date like this:

                          _spPageContextInfo.userId+":"+new Date().valueOf()

                          You cannot get the same method in a FLOW, but you all you need is an value that is uniquie within the list so using an expression like this should work:

                          rand(1000000000,2000000000)

                          You are not 100% certain to get an unique value using this method, but it should be fairly certain. If the theoretical chance of getting the same value on two items bother you you can prepend the current item id from the item you are triggering the flow on – something like this:

                          concat(triggerBody()?['ID'],':',rand(1000000000,2000000000))

                          Alexander

                          #35091
                          Jeverly
                          Participant

                            Hello,

                            I have three fields that I need to link together.

                            – Session Start Date (Date Picker)
                            – Number of Days
                            – Task Due Date

                            The user fills out the Session Start Date field (Parent List) and will click the Add Task button which opens the Task form (Child List). The user then chooses a task from the Task Name dropdown field (The Lookup list). Once they choose their task they need to add a number to the number of days field. -1 would be the day before the session start date, 0 would be the day of the Session Start Date and 5 would be 5 days after the Session Start Date. I need for the day entered to populate the read only Task Due Date field as it relates to the Session Start Date field. The Task Due Date field would be calculated using calendar days.

                            Example 1.

                            Session Start Date – 4/10/2021
                            Number of Days – -10
                            Task Due Date – 5/31/2021

                            Example 2.

                            Session Start Date – 8/17/2021
                            Number of Days – 16
                            Task Due Date – 9/2/2021

                            Can this be done using DFFS? Any help you can provide would be greatly appreachiated :).

                            Travis Goodman
                            Participant

                              Hi Alexander, this is not a big deal at all, just thought I’d bring it to your attention. When the list settings > advanced settings has attachments disabled, the forms will still show the option to apply attachments. This can wait for a larger update, just wanted to put it on your radar.

                              Attached you will find an image showing the issue. Notice that there’s no option to add attachments in the ribbon at the top because it’s disabled, but the DFFS form shows the option to add.

                              Simple solution for now is to just hide it in the rules.

                              Attachments:
                              #35055
                              Michael V. Green
                              Participant

                                Im trying to create a list that is used throughout my site collection that grows organically called CaseType and I cant figure out how to do it with SPJS-Lookup and Autocomplete. CaseType is a multichoice Lookup column on the Newform. If the type of case isn’t listed, I would like the user to be able to add a new one to the list and use that new CaseType in the current item and in the future. Therefore, I added a button to the form that opens the CaseType List newform Dialog box(see attached).

                                However, when you add the new CaseType, I cannot select that new one to the current form because it isn’t reflected in the multi Lookup yet. If my button refreshes the form after save, I lose all the data I added in the subsequent fields. And since this is a newform, that is an issue. Also, this CaseType list is being used on all other sub sites, Refiners within Search and I cant use managed metadata.

                                My script for the dialog new form:

                                
                                
                                <script type="text/javascript">
                                 function displayLayover(url) {
                                 var options = SP.UI.$create_DialogOptions();
                                 options.url = url; 
                                 options.dialogReturnValueCallback = Function.createDelegate(
                                 null, null);
                                 SP.UI.ModalDialog.showModalDialog(options); 
                                 } 
                                 </script>
                                <html><table><tr><td>
                                            <input type=button value="Add CaseType"
                                onClick='javascript:displayLayover("https://DOMAIN/sites/##/Remand_Docket/Lists/Case Type/NewForm.aspx?IsDlg=1")'></button>
                                </td></tr></table></html>
                                #35020

                                Topic: DFFS Email Alert

                                in forum Classic DFFS
                                Paul Lynch
                                Participant

                                  Hi Alexander,

                                  I am trying to end emails from my DFFS form. But if I use a shared mailbox address or resource account, the emails never seem to reach their destination. Which is a shame as the email appears to come from “SP” not from a shared mailbox like in FLOW (Power Automate).

                                  WORKS:
                                  User email address – username@mydomain.com
                                  Also {Author} and {Currentuseremail} work

                                  DOESNT WORK
                                  Shared mailbox example – sharedmailbox1@mydomain.com
                                  Resource Account – RA-DEPT-BLAH1@mydomain.com

                                  Separate Note on not using REST api:

                                  We are about to retire SP2010 workflows in our organisation. So I guess I can no longer use a custom list with workflow to send E-Mails? As you have to use platform type SP2010? When setting up the workflow.

                                  SP 2013 workflow will only send emails to valid members of the organization

                                  Wanted to confirm the limitations of the platform.

                                  I guess we should just setup a FLOW (Power Automate) to trigger when the item is modified and build in the logic in that platform?.

                                  Kind Regards,
                                  Paul

                                Viewing 15 results - 211 through 225 (of 1,358 total)