Alexander Bautz

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 4,225 total)
  • Author
    Posts
  • in reply to: sharepoint online #36280
    Alexander Bautz
    Keymaster

    Hi,
    I’m afraid adding JSON formatting to a rich text field is not supported – according to this article: https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting#supported-column-types

    Alexander

    in reply to: vLookup configuration error #36275
    Alexander Bautz
    Keymaster

    I tested it now on a new config and get the same error. I’m not sure what could cause it, but I’ll look into it and get it fixed in the new version that is coming in the beginning of next week.

    Alexander

    Alexander Bautz
    Keymaster

    Hi,
    By default only users with “Manage lists” permission will see the button. I don’t currently have any further restrictions for the overall visibility of the button, but you can set a password on the config for your configured forms by setting a password in the Misc tab.

    Alexander

    in reply to: Replicating infopath dropdown with values #36269
    Alexander Bautz
    Keymaster

    Hi,
    I haven’t really used InfoPath so I’m not familiar with the type of dropdown you refer to. Please clarify what kind of functionality you are looking for – and also what type of field this is (in the SharePoint list settings).

    Alexander

    in reply to: Currency read only #36267
    Alexander Bautz
    Keymaster

    Thanks for the feedback. I can confirm that I have missed this and quite a few other currency codes – I used an incomplete list of LCID when I created this function.

    I’ll get this fixed and hopefully get a new version out over the weekend.

    Best regards,
    Alexander

    in reply to: Currency read only #36262
    Alexander Bautz
    Keymaster

    Hi,
    What currency are you using for this field? – does it show correct before setting it as readonly? – also, does it show the correct symbol in dispform?

    Alexander

    in reply to: CLASSIC DFFS? (Latest version saving issue) #36253
    Alexander Bautz
    Keymaster

    No problem, I’m glad you figured it out.

    Thanks for the donation!

    Alexander

    Alexander Bautz
    Keymaster

    I’m afraid there are no other way to restore it – unless you used the dev-mode option (by clicking the green banner in the top of the config) to create a dev-mode version of the config.

    To activate version control on the list (standard SharePoint functionality) you must enter list settings > version settings > Create a version each time you edit an item in this list? > yes

    Alexander

    Alexander Bautz
    Keymaster

    You might be able to restore the previous version (if you have not saved your config after you restored it).

    Go to the Misc tab and click the “DFFS Configuration list” button under the heading “Toggle visibility of the configuration lists in all site contents”. Now you can go to site content and find the config list – it is Titled “SPJS-DynamicFormsForSharePoint”. Identify the correct config by looking at the Title column.

    The previous version of the config is stored in the “lastGoodConfig” field. Copy this over to the “blob” field, save and retry your form.

    You can turn on version control on the config list to help in a similar situation next time.

    Alexander

    in reply to: CLASSIC DFFS? (Latest version saving issue) #36246
    Alexander Bautz
    Keymaster

    I cannot see anything special here. I could be related to the email so you can try commenting out the spjs.dffs.processEmailTemplate line and test.

    It could also be that one of your hidden fields have a validation error that blocks the save. You can try opening the console and run this code to show all fields (after you have tried to save and failed):

    jQuery(".ms-formtable tr").show();
    

    This will show all rows – look through and see if you have any red validation messages.

    Alexander

    in reply to: Open Lookup Column in Full windows instead of Modal Dialog #36244
    Alexander Bautz
    Keymaster

    Hi,
    Doing this automatically is not so easy because opening a link with code like this will most likely trigger the popup-blocker in the browser.

    You can add a link to the top of the form using something like this in your custom js:

    if (GetUrlKeyValue("IsDlg") === "1") {
        jQuery("#part1").prepend("<a href='" + location.href.split("&IsDlg=1")[0] + "' target='_blank' style='font-size:20px;'>Open the page in a new page</a>");
    }
    

    Alexander

    • This reply was modified 2 weeks ago by Alexander Bautz. Reason: Fixed the format of the snippet
    in reply to: Modern DFFS v1.0 has been released #36241
    Alexander Bautz
    Keymaster

    Thank you for the feedback. I’ll add your points to the list and work through them and see what I can implement in the next update.

    Regarding the buttons in the top row of the editor: you must drag-and-drop them to the place in your form where you want to add them.

    You can style the label individually for each field if you open the field properties (right click or select from hamburger-menu ☰).

    Best regards,
    Alexander

    in reply to: Modern DFFS v1.0 has been released #36239
    Alexander Bautz
    Keymaster

    If you have added the app to your app catalog (tenant or site collection app catalog) and you have activated it you should already have it in all your lists.

    Did you follow the instructions here?: https://spjsworks.com/install-modern-dffs

    Please note that if you did not check the Make this solution available to all sites in the organization checkbox you will have to add the app to each of your sites under Site contents > New > App > Modern DFFS

    Alexander

    in reply to: Modern DFFS v1.0 has been released #36226
    Alexander Bautz
    Keymaster

    Thanks, you can email me the feedback if that is easier.

    Best regards,
    Alexander

    in reply to: Chart V7 attachSPJSChartsSelectHandler #36207
    Alexander Bautz
    Keymaster

    Hi,
    Are you sure you don’t load the attachSPJSChartsSelectHandler call two times?

    If you are, you can try adding this code to ensure it doesn’t run twice:

    var chart_attachedEvents = {};
    attachSPJSChartsSelectHandler("Put the chart ID here");
    function attachSPJSChartsSelectHandler(id) {
        if(chart_attachedEvents[id]) return; // Ensure it does not attache twice
        try {
            google.visualization.events.addListener(spjs.charts.data.charts[id], 'select', function (e) {
                chart_attachedEvents[id] = true;
                var selection = spjs.charts.data.charts[id].getSelection();
                var data = spjs.charts.data.chartData[id];
                var message = '';
                for (var i = 0; i < selection.length; i++) {
                    var item = selection[i];
                    if (item.row != null && item.column != null) {
                        var str = data.getFormattedValue(item.row, item.column);
                        message += '{row:' + item.row + ',column:' + item.column + '} = ' + str + '\n';
                    } else if (item.row != null) {
                        var str = data.getFormattedValue(item.row, 0);
                        message += '{row:' + item.row + ', column:none}; value (col 0) = ' + str + '\n';
                    } else if (item.column != null) {
                        var str = data.getFormattedValue(0, item.column);
                        message += '{row:none, column:' + item.column + '}; value (row 0) = ' + str + '\n';
                    }
                }
                if (message == '') {
                    message = 'nothing';
                }
                alert('You selected ' + message);
            });
        } catch (ignore) {
            setTimeout(function () {
                attachSPJSChartsSelectHandler(id);
            }, 1000);
        }
    }
    

    Look at line 1, 4 and 8.

    Alexander

Viewing 15 posts - 1 through 15 (of 4,225 total)