becca

Forum Replies Created

Viewing 12 posts - 31 through 42 (of 42 total)
  • Author
    Posts
  • in reply to: Hide blank readonly fields? #25238
    becca
    Participant

    Is there anything in this code that needs changed based on our specific lists? With the code as written I get an error “Cannot read property ‘0’ of undefined”

    **I am not checking for read-only, only blank

    • This reply was modified 4 years, 10 months ago by becca.
    in reply to: Unselect tabs on load (JS) #25236
    becca
    Participant

    For toggleSelected I was trying to use it to select a different tab than the default, what would be the correct code to do so? Show/hide is not what I’m looking for, also those work as intended, I only mentioned them since I was looking at working code to try and guess what might the correct format for selection.

    in reply to: Unselect tabs on load (JS) #25230
    becca
    Participant

    PERFECTION. This looks so much cleaner. Any idea why my tab selection code wasn’t working though? That could still be useful down the road, and it strikes me as odd that the exact code that has worked for others isn’t working even with all rules disabled (also this view doesn’t have any code that could effect it).

    in reply to: Toggle Read-only for a SINGLE FIELD using js #25189
    becca
    Participant

    I’ve been testing formatting on form load with a field that won’t be overwritten on load by any rules or code before using the correct format with a field change trigger.

    Since you brought up the trigger specifically I ran a couple more tests and found what I think is the issue;
    The field I was using to test I was using because it 1) was not required and 2) should be editable on a normal form load. After digging through my rules this seems like a similar issue to a previous post I made, things in the “then” portion of rules are interacting with other rules and code whether or not the “if” section is true. A rule that is not triggered was blocking the code, even though if it was triggered it would be doing the same thing as my code.

    Trying this format with a brand new field unreferenced in any rules and using the previous field after a trigger works perfectly. I guess I’ll be translating more of my rules into code until this bug is fixed, luckily this is pretty straight forward to do most the time.

    in reply to: Cannot hide tabs in Edit #24794
    becca
    Participant

    Same thing as above;

    DEPRECATED: jquery.autocomplete.js – See https://ecosystem.atlassian.net/browse/AUI-393
    batch.js?locale=en-GB&build-number=5639:212 Creating iframes
    batch.js?locale=en-GB&build-number=5639:212 DEPRECATED: getArrowPath – See https://ecosystem.atlassian.net/browse/AUI-1362
    batch.js?locale=en-GB&build-number=5639:212 DEPRECATED: getArrowPath – See https://ecosystem.atlassian.net/browse/AUI-1362
    batch.js?locale=en-GB&build-number=5639:165 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.
    send @ batch.js?locale=en-GB&build-number=5639:165
    ajax @ batch.js?locale=en-GB&build-number=5639:160
    processSuggestionApps @ batch.js?locale=en-GB&highlightactions=true&hostenabled=true:5296
    (anonymous) @ batch.js?locale=en-GB&highlightactions=true&hostenabled=true:5296
    j @ batch.js?locale=en-GB&build-number=5639:29
    add @ batch.js?locale=en-GB&build-number=5639:29
    ready @ batch.js?locale=en-GB&build-number=5639:16
    init @ batch.js?locale=en-GB&build-number=5639:15
    j @ batch.js?locale=en-GB&build-number=5639:12
    updateDropdown @ batch.js?locale=en-GB&highlightactions=true&hostenabled=true:5296
    j @ batch.js?locale=en-GB&build-number=5639:29
    fireWith @ batch.js?locale=en-GB&build-number=5639:31
    c @ batch.js?locale=en-GB&build-number=5639:155
    b @ batch.js?locale=en-GB&build-number=5639:167
    XMLHttpRequest.send (async)
    send @ batch.js?locale=en-GB&build-number=5639:166
    ajax @ batch.js?locale=en-GB&build-number=5639:160
    getLinks @ batch.js?locale=en-GB&highlightactions=true&hostenabled=true:5296
    h.AppSwitcher @ batch.js?locale=en-GB&highlightactions=true&hostenabled=true:5296
    initialise @ Becca’s+js+testing:192
    (anonymous) @ Becca’s+js+testing:197
    (anonymous) @ Becca’s+js+testing:201
    22Resource interpreted as Document but transferred with MIME type image/gif: “<URL>”.

    • This reply was modified 4 years, 10 months ago by becca.
    in reply to: Cannot hide tabs in Edit #24782
    becca
    Participant

    Completely separate topic, when I load a DFFS site in iFrame it sits loading (the spinning animation on the stripped background) for a long time, but once it gets to the “This took forever!” message I can click it off and the rules work correctly. Is there a way to prevent the loading issue?

    Attachments:
    in reply to: Cannot hide tabs in Edit #24771
    becca
    Participant

    Has zero effect on the conflicting tab settings. Just had a user point out a similar issue with a rule on another site that was already set to no reversing. I’m going to work around this issue by using functions on these rules to toggle visibility since the tabs settings conflict for rules that are not triggered.

    in reply to: Cannot hide tabs in Edit #24767
    becca
    Participant

    It looks like the rules were being effected by later rules that were not triggered. A rule set to effect tab visibility if a field “Status” was set to “Pending” would only work below a rules set to effect tab visibility if a field “Status” was set to “Approved”, which cannot trigger at the same time. Alerts in the untriggered rules didn’t fire so I’m not sure why the visibility settings are conflicting.

    in reply to: Cannot hide tabs in Edit #24765
    becca
    Participant

    Just to test I added a basic rule in display to hide tabs on form initiation and it worked fine there. This gave me he idea to disable all rules in edit and make the same rule, and it worked. I’m going to go through and enable rules until I figure out which one is the issue.

    in reply to: Cannot hide tabs in Edit #24763
    becca
    Participant

    I’m using Dynamic Forms for SharePoint DFFS Backend v4.4.3.58|CSS version: 4.46 / |spjs-utility version: 1.328

    All I get for new form and edit form in the main page and DFFS side is “jquery.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.&#8221;

    There aren’t any rules that would reverse tab the visibility.

    becca
    Participant

    This is beautiful, THANK YOU. I didn’t think .Manager was an option and was fully prepared to pull the name out of the html in the org chart, this is perfection.

    becca
    Participant
    var curuser = {accountfieldinternalname};
    curuser = curuser.replace(":","%3A");
    curuser = curuser.replace("#","%23");
    curuser = curuser.replace(".","%2E");
    curuser = curuser.replace("|","%7C");
    curuser = curuser.replace("\","%5C");
    var upageurl = ("oururl.com/accountname=" + curuser);

    got the first part (unless someone knows a better way)

    • This reply was modified 4 years, 11 months ago by becca.
Viewing 12 posts - 31 through 42 (of 42 total)