Harsh

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • in reply to: Different form for different view. #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?

    in reply to: Different form for different view. #35212
    Harsh
    Participant

    @SteveE
    Can you please provide code?

    in reply to: Different form for different view. #35210
    Harsh
    Participant

    Yes,
    I want to switch form design on toggle/two buttons.

    I have created two tabs, Tab0 and Tab1.
    When toggle is set as Yes/true, i want to display Tab0 and for no/false i want to display Tab1.

    How can i achieve this?
    Do i need to write code in custom js?
    Please provide code which is use for switch between two tabs.

    Thanks in advance.

    in reply to: Different form for different view. #35195
    Harsh
    Participant

    In info path forms there is option for design forms for different views.
    check attached image (view in info path)

    in the new form, there is rule set and it is switch for according to two button in form.
    check attached image (switch condition)

    For example, when user click on ‘Add shared service initiative’, form switch to shared service view from the default view.

    My question is how can i achieve this in DFFS, how do i set rules for this?
    Is there any option for diffrent views in DFFs?

    in reply to: How to get ID of saved item in DFFS form? #34976
    Harsh
    Participant

    How can i close DFFS form just like Edit form close after save?

    in reply to: How to get ID of saved item in DFFS form? #34972
    Harsh
    Participant

    It helps!
    Thanks @alexander

    in reply to: How to handle back button? #34213
    Harsh
    Participant

    Thanks to replay @alexander,
    Is there any fix for this issue?

    in reply to: How to solve Save conflict error? #34198
    Harsh
    Participant

    Work exactly the way I want…Thanks, @alexander…!
    Regards
    Harsh.

    in reply to: How to solve Save conflict error? #34194
    Harsh
    Participant

    Very useful, Thanks @Alexander
    Can you help me with providing steps on how can I set up these rules?

    in reply to: How to validate HTML Input? #33846
    Harsh
    Participant

    Thanks for reply Alexander,

    But some how i can not call this method while clicking save button,
    Let me explain this again,
    Please find attached image, i am using one header on form and i want title field into this header, I can not move my OOTB title field into header, i am correct?
    so, i just simply create one input box in header.
    In custom js i write code to hide OOTB title.

    
    
    function dffs_Ready() {
    $('#dffs_Title').hide();
    $('#newProjectTtl').on('change', function () {
            $('#dffs_Title').find('input').val(this.value);
        });
    //other codes
    };

    So, now when i try to save form without entring title into this field, it will not save the form, so at this time i want to validate my custom input box along with error message just like OOTB title error message.

    I tried below code but it is not working, can you please help me with this?

    
    
    function dffs_Ready() {
    $('#dffs_Title').hide();
    $('#newProjectTtl').on('change', function () {
            $('#dffs_Title').find('input').val(this.value);
        });
    //other codes
    };
    function dffs_PreSaveAction() {
        alert("pre save call");
        var projectTitle = jQuery("#newProjectTtl").val();
        if(projectTitle === ""){
            jQuery("#newProjectTtl").css({"background-color":"#fde7e9"});
            spjs.dffs.alert({
                "title": "Missing project title",
                "msg": "Please supply the title of the project in the highlighted input field.",
                "ok": function(){
                    // close dlg
                }
            });
            return false;
        }
        return true;
    }

    Thanks.

    • This reply was modified 5 months, 2 weeks ago by Harsh.
    Attachments:
    Harsh
    Participant

    i just add this code in Custom JavaScript part of new form.

    <script>
    alert(“Form submitted successfully, click OK to reload the form.”);
    location.href = “http://_path_to_your_modern_page_where_the_form_lives&#8221;;
    </script>

    can you explain how this code will fire when form will submit?

    Harsh
    Participant

    Hey,
    I tried to add code in custom js of new form, but it doesn’t work for me.

    Harsh
    Participant

    I got the point, I already created one page that shows submit message.
    How can i display alert/popup when form will be save?
    when user close alert i need to redirect user to same New form.
    I want all this in embed webpart into modern SharePoint home page.

    Hope i am able to explain well,
    Thanks for answering in very quick time.

    Harsh
    Participant

    Hello,
    After submitting form it is possible to show popup like form submit successfully including close button?
    When user close that popup button i want to display same form, is that possible?
    Thanks.

    Harsh
    Participant

    Thanks,
    Problem is Embed tag load entire page, i want only form into webpart,
    also I don’t redirect to other page after save and submit form, how can i stay on same form after save or cancel this from?

Viewing 15 posts - 1 through 15 (of 16 total)