Forum Replies Created
-
AuthorPosts
-
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. View2Now, 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?
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 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?Attachments:
How can i close DFFS form just like Edit form close after save?
It helps!
Thanks @alexanderThanks to replay @alexander,
Is there any fix for this issue?Work exactly the way I want…Thanks, @alexander…!
Regards
Harsh.Very useful, Thanks @Alexander
Can you help me with providing steps on how can I set up these rules?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 3 years, 2 months ago by
Harsh.
Attachments:
May 20, 2021 at 07:50 in reply to: How to Add DFFS forms in embed webpart in sharepoint online. #33563i 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”;
</script>can you explain how this code will fire when form will submit?
May 19, 2021 at 14:05 in reply to: How to Add DFFS forms in embed webpart in sharepoint online. #33545Hey,
I tried to add code in custom js of new form, but it doesn’t work for me.May 19, 2021 at 13:07 in reply to: How to Add DFFS forms in embed webpart in sharepoint online. #33541I 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.May 19, 2021 at 12:55 in reply to: How to Add DFFS forms in embed webpart in sharepoint online. #33535Hello,
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.May 19, 2021 at 11:11 in reply to: How to Add DFFS forms in embed webpart in sharepoint online. #33533Thanks,
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? -
AuthorPosts