Skip to content

857401: Added the form field shading in form field file #4427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: hotfix/hotfix-v30.1.37
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions ej2-asp-core-mvc/document-editor/form-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@ dropdownfieldInfo.dropDownItems = ['One','Two', 'Three']
documentEditor.setFormFieldInfo('Drop1',dropdownfieldInfo);
```

## Form Field Shading

You can customize form field shading at the application level using the `formFieldSettings` property.

The example code below demonstrates how to set a custom shading color and how to disable shading (by default, shading is enabled).

```typescript
// Set a custom shading color (for example, white)
container.documentEditorSettings.formFieldSettings.shadingColor = '#ffffff';

// Disable form field shading entirely
container.documentEditorSettings.formFieldSettings.applyShading = false;
```

N> This customization only affects the application UI and will not be preserved when exporting the document.

## Export form field data

Data of the all Form fields in the document can be exported using `exportFormData`.
Expand Down Expand Up @@ -113,7 +129,8 @@ Document editor provides an option to protect and unprotect document using `enfo
{% include code-snippet/document-editor-container/protect-unprotect/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Protect-unprotect.cs" %}
{% endhighlight %}{% endtabs %}
{% endhighlight %}
{% endtabs %}

{% elsif page.publishingplatform == "aspnet-mvc" %}

Expand All @@ -122,7 +139,8 @@ Document editor provides an option to protect and unprotect document using `enfo
{% include code-snippet/document-editor-container/protect-unprotect/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Protect-unprotect.cs" %}
{% endhighlight %}{% endtabs %}
{% endhighlight %}
{% endtabs %}
{% endif %}

N> In enforce Protection method, first parameter denotes password and second parameter denotes protection type. Possible values of protection type are `NoProtection |ReadOnly |FormFieldsOnly |CommentsOnly`. In stop protection method, parameter denotes the password.