Alexander Bautz

Forum Replies Created

Viewing 15 posts - 4,576 through 4,590 (of 4,721 total)
  • Author
    Posts
  • in reply to: Duplicating Tabs and Rules in DFFS 4.2 Config #6950
    Alexander Bautz
    Keymaster

      I’m glad it worked. I have not been able to recreate the creation of two identical configurations, but if two users at the same time starts configuring a form that does not have any current configuration, you can end up with duplicates.

      If anyone have a “method” for creating duplicates, please let me know so I can prevent it.

      Alexander

      in reply to: Change Request: Show On for Edit and Display icons #6949
      Alexander Bautz
      Keymaster
        in reply to: Error in the Custom JS #6926
        Alexander Bautz
        Keymaster

          I’m glad you figured it out.

          Alexander

          in reply to: Multi-item select #6925
          Alexander Bautz
          Keymaster

            Sorry, this is single choice only.

            Alexander

            in reply to: Duplicating Tabs and Rules in DFFS 4.2 Config #6905
            Alexander Bautz
            Keymaster

              Hi,
              I have confirmed this bug. It appears when you have duplicate entries for the current form in the configuration list.

              I cannot tell exactly why you end up with duplicates, but I will add a check for it in the upcoming release so it will not affect the solution if you somehow manage to get duplicates.

              If someone have a clue as to why you end up with duplicates, please let me know.

              For now, you must manually remove the duplicate entry in the configuration list by going to /Lists/SPJSDynamicFormsForSharePoint/AllItems.aspx and deleting the oldest configuration for the affected form (look at the “Modified” date).

              Alexander

              in reply to: vLookup frontend v2.100 BETA #6903
              Alexander Bautz
              Keymaster

                I’m glad you figured it out.
                Alexander

                in reply to: Putting js references in master page #6897
                Alexander Bautz
                Keymaster

                  I’m not sure this is a good idea. The scripts will load for ALL pages, and not just the forms. This will make the page load slower as it has to query the DFFS config list to see if it finds any records.

                  You can try it, but it is not “officially” recommended.

                  Alexander

                  in reply to: Refer to a field in tab headings? #6895
                  Alexander Bautz
                  Keymaster

                    Sorry, my bad – there was an error in the code example. See if this helps.

                    Alexander

                    in reply to: Refer to a field in tab headings? #6889
                    Alexander Bautz
                    Keymaster

                      Hi,
                      This is no problem. Add this code to the header (see image attached):

                      PM Number: <span id="putPMNumberHere" />

                      Then use this code in the custom JS section in the Misc tab:

                      // For DispForm
                      $("#putPMNumberHere").html(getFieldValue("YourFieldName",true));
                      // For EditForm
                      $("#putPMNumberHere").html(getFieldValue("YourFieldName",false));

                      PS: “YourFieldName” is the FieldInternalName – change it for your actual field name.

                      Hope this helps
                      Alexander

                      • This reply was modified 10 years, 1 month ago by Alexander Bautz. Reason: Fixed error in code example
                      in reply to: Recurring Events in Calendar List #6853
                      Alexander Bautz
                      Keymaster

                        I’m glad you figured it out!

                        Alexander

                        in reply to: Duplicating Tabs and Rules in DFFS 4.2 Config #6852
                        Alexander Bautz
                        Keymaster

                          Hi,
                          I’m not aware of this issue. I have a few questions:

                          1. Is this the new BETA, or is it v4.200?
                          2. Can you give me some details on browser, SharePoint version etc?
                          3. Does it happen for all forms, or only some?
                          4. Any errors in the developer console (hit F12 > Console)?

                          Alexander

                          in reply to: DFFS v4.210 BETA #6840
                          Alexander Bautz
                          Keymaster

                            Hi David,
                            Thank you for testing. I have a few quesions.
                            1: What kind of field is “Volume (Last 12 Months) and what trigger did you use to set it read only?

                            2: Did the field “English Approval – Writer” have a value that did not show up when set to read only? If so, what trigger did you use to set it read only?

                            3: Regarding boolean fields in DispForm – are you 100% sure you used the new version in the frontend?

                            Info regarding comparing dates: This change will use the full date including hours and minutes when comparing date values from two different fields – using one date col in the “If this trigger” field, and another date col in “This value” field – doing a compare using less than or greater than.

                            Alexander

                            in reply to: vLookup frontend v2.100 BETA #6839
                            Alexander Bautz
                            Keymaster

                              Thank you for the feedback.

                              Alexander

                              in reply to: New Column Not showing in DFFS #6803
                              Alexander Bautz
                              Keymaster

                                I’m glad you figured it out.

                                Alexander

                                in reply to: Loading Speed #6798
                                Alexander Bautz
                                Keymaster

                                  Hi,
                                  Add this code to your Custom JS section:

                                  $("#dffs_POType select, #dffs_NumberPOLines select").change(function(){
                                  	showFieldsByPOType();
                                  });
                                  
                                  function showFieldsByPOType(){
                                  	var arr, a, b, ticker = 1;
                                  	// Hide all
                                  	while(ticker <= 10){			
                                  		$("#sbs_OuterTR_"+ticker).hide();
                                  		ticker +=1;
                                  	}
                                  	ticker = 1;
                                  	a = $("#dffs_PODetails select").val();
                                  	b = $("#dffs_NumberOfPOLines select").val();
                                  	if(a !== "" && b !== ""){
                                  		while(ticker <= b){			
                                  			$("#sbs_OuterTR_"+ticker).show();
                                  			if(a === "Service"){
                                  				$("#sbs_Field_GLAccount"+ticker).hide();
                                  				$("#sbs_Field_WBSSAPCode"+ticker).hide();
                                  				$("#sbs_Field_CostCenter"+ticker).hide();
                                  			}else{
                                  				$("#sbs_Field_GLAccount"+ticker).show();
                                  				$("#sbs_Field_WBSSAPCode"+ticker).show();
                                  				$("#sbs_Field_CostCenter"+ticker).show();
                                  			}
                                  			ticker +=1;
                                  		}
                                  	}
                                  }

                                  You must verify that “POType”, “NumberPOLines” are the correct names. Also check that “GLAccount”, “WBSSAPCode” and “CostCenter” are the right *prefix* for your fields as the script appends 1-10.

                                  In the tab where you have the PO lines, your side-by-side index must be from 1-10 for the side-by-side groups of fields as the code hides the entire line and not the individual fields.

                                  You must also add “showFieldsByPOType” as “Click function name” for the tab where you display the PO lines.

                                  PS: When using F12 to debug the code it will take a long time to render. This speeds up a lot if you close the developer console.

                                  Hope this helps you on the way, and let me know if something is unclear.
                                  Alexander

                                Viewing 15 posts - 4,576 through 4,590 (of 4,721 total)