Open markadrake opened 1 month ago
It gets worse. If you disabled includeScripts
you miss out on this:
<div class="umbraco-forms-form-config umbraco-forms-hidden"
--
| data-id="be2ee399240a4a8994eadcb358cae10e"
| data-serialized-page-button-conditions="{}"
| data-serialized-fieldset-conditions="{}"
| data-serialized-field-conditions="{"4180564a-1753-4a39-9705-956a17a11d45":{"id":"293963b7-f02c-48e2-a614-d08b4829c553","actionType":"Show","logicType":"Any","rules":[{"id":"242f62f8-67d3-41c0-fdbd-285f42b383cc","fieldsetId":"39801605-643c-47ab-8346-f4ea7678c74c","field":"242f62f8-67d3-41c0-fdbd-285f42b383cc","operator":"ContainsIgnoreCase","value":"Other"}]}}"
| data-serialized-fields-not-displayed="{}"
| data-trigger-conditions-check-on="change"
| data-form-element-html-id-prefix=""
| data-disable-validation-dependency-check="false"></div>
Which adds all the necessary functionality.
I can't set Html.SetFormThemeCssFile
to null.
If you set includeScripts
to false
you need to take additional steps to render your scripts and config, usually at the end of the page. There's some details on how to do that here.
You can disable the stylesheet via form settings. Maybe it would be useful if you could separately control these via code, but you have this option:
When I set
includeScripts
to true I receive the following output:I was unable to use
includeScripts
because it adds a stylesheet. I recommend these be separated in the future.Edit: I'm also surprised that
RenderUmbracoFormDependencies()
does not render this script above.