Script in Display Form
Posted by ChrisMBS - Apr 28 ’13 at 10:40
Hi,
I have written code into the Display, New, and Edit Forms that show and hide fields based on inputs.
The New and Edit Forms work correctly.
However the Display Form shows every field regardless. It doesn't appear to be executing the javascript like the New and Edit Forms. The code is exactly the same for all three forms.
How do I get it to work the same?
Regards
-
DmitryAdminMember for: 10 years 9 months 16 days
The message was removed by a forum moderator.
-
DmitryAdminMember for: 10 years 9 months 16 days
You can use JS-framework to change edit or new forms dynamically on the client side while user edits values in fields.
For the Display form I recommend you to use Rules: http://spform.com/documentation/groups.
-
ChrisMBSMemberMember for: 9 years 11 months 4 days
Thanks for the response.
Within the rules area, is it possible to show and hide fields based on selections? E.g. If checkbox A is selected then hide Textbox A.
Cheers
-
DmitryAdminMember for: 10 years 9 months 16 days
Sure, you can build Rules based on field values and create different forms for them. Just create a new rule with formula: [Checkbox] = 'True' where 'Checkbox' is title or internal name of your checkbox field. Now you can create specific forms for this rule and hide textbox field in particular.
-
ds4beMemberMember for: 8 years 4 months 18 days
Hi
I have created a new group and placed conditions when the form is to be used, however how do I ensure that the Display form is used only as i do not want to use the edit and new forms?
-
Dmitry KozlovAdminMember for: 9 years 6 months 5 days
[#5]: Hi,
If you don't want to override Edit and New forms for this new group, just do not touch them in Forms Designer and modify Display form only.
-
ebelfordMemberMember for: 6 years 7 months 23 days
I was under the impression that the Groups and Rules functionality was not compatible with Forms Designer for Office 365. If this is true, how would I accomplish this in Sharepoint Online? My New and Edit Forms are working as expected... the problem only exists on my Display form.
Thanks
-
Dmitry KozlovAdminMember for: 9 years 6 months 5 days
[#7]: Hi,
Find a workaround for SharePoint Online:
http://formsdesigner.blogspot.com/2016/04/providing-different-forms-for-different.html
-
jessicasimonMemberMember for: 1 year 8 months 7 days
Hey. This forum is so interesting for me. I study design at university and just now I started using this app. I have many home tasks. Besides tasks in SharePoint I have many writing tasks. To have more time for design I decided to buy pre written essays, It was the best decision ever.
-
jessicasimonMemberMember for: 1 year 8 months 7 days
Hey. This forum is so interesting for me. I study design at university and just now I started using this app. I have many home tasks. Besides tasks in SharePoint I have many writing tasks. To have more time for design I decided to <a href="https://qualityessay.com/pre-written-essays.html">buy pre written essays</a> , It was the best decision ever.