Skip to content

Commit aff9ad9

Browse files
Resolve issues
1 parent 7e8b40b commit aff9ad9

File tree

4 files changed

+40
-40
lines changed

4 files changed

+40
-40
lines changed

13/umbraco-forms/developer/ajaxforms.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ Examples demonstrating how to handle a file upload and use reCAPTCHA fields are
544544

545545
## Working with the CMS Content Delivery API
546546

547-
The [Content Delivery API](https://docs.umbraco.com/umbraco-cms/v/12.latest/reference/content-delivery-api) provides headless capabilities within Umbraco by allowing you to retrieve content in JSON format.
547+
The [Content Delivery API](https://docs.umbraco.com/umbraco-cms/13.latest/reference/content-delivery-api) provides headless capabilities within Umbraco by allowing you to retrieve content in JSON format.
548548

549549
When retrieving content that contains an Umbraco Forms form picker, the output by default will consist of the ID of the selected form:
550550

@@ -570,7 +570,7 @@ When retrieving content that contains an Umbraco Forms form picker, the output b
570570
}
571571
```
572572

573-
With [expanded output](https://docs.umbraco.com/umbraco-cms/v/12.latest/reference/content-delivery-api#output-expansion) for the property, the full details of the form will be available. The structure and content of the form representation will be exactly the same as that provided by the Forms API itself.
573+
With [expanded output](https://docs.umbraco.com/umbraco-cms/13.latest/reference/content-delivery-api#output-expansion) for the property, the full details of the form will be available. The structure and content of the form representation will be exactly the same as that provided by the Forms API itself.
574574

575575
```json
576576
{
@@ -603,11 +603,11 @@ With [expanded output](https://docs.umbraco.com/umbraco-cms/v/12.latest/referenc
603603
For scenarios where you want to dynamically inject a form into a page, for example in a modal dialog, there is a dedicated JavaScript event and API method available to reinitialize Umbraco Forms on the newly added content.
604604

605605
```javascript
606-
// Execute a reinitialise on dynamic injections
607-
const reiniitializeEvent = new Event('umbracoFormsReinitialize');
608-
document.dispatchEvent(reiniitializeEvent);
606+
// Execute a reinitialize on dynamic injections
607+
const reinitializeEvent = new Event('umbracoFormsReinitialize');
608+
document.dispatchEvent(reinitializeEvent);
609609

610610
// Render a specific form via the API
611611
const injectedForm = document.getElementById('injected-umbraco-form');
612612
window.UmbracoForms.reinitialize(injectedForm);
613-
```
613+
```

13/umbraco-forms/developer/email-templates.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -217,31 +217,31 @@ Below is an example of an email template from the `~/Views/Partials/Forms/Emails
217217
}
218218
break;
219219

220-
default:
221-
var values = field.GetValues();
222-
if (values != null)
223-
{
224-
foreach (var value in values)
225-
{
226-
if (value != null)
227-
{
228-
if (value is string strValue)
229-
{
230-
var processedValue = strValue.ApplyPrevalueCaptions(field.Id, Model.PrevalueMaps).ReplaceLineEndings("<br/>");
231-
@Html.Raw(processedValue)
232-
}
233-
else
234-
{
235-
@value
236-
}
237-
<br />
238-
}
239-
}
240-
}
241-
break;
242-
}
243-
</p>
244-
}
220+
default:
221+
var values = field.GetValues();
222+
if (values != null)
223+
{
224+
foreach (var value in values)
225+
{
226+
if (value != null)
227+
{
228+
if (value is string strValue)
229+
{
230+
var processedValue = strValue.ApplyPrevalueCaptions(field.Id, Model.PrevalueMaps).ReplaceLineEndings("<br/>");
231+
@Html.Raw(processedValue)
232+
}
233+
else
234+
{
235+
@value
236+
}
237+
<br />
238+
}
239+
}
240+
}
241+
break;
242+
}
243+
</p>
244+
}
245245

246246
</td>
247247
</tr>

16/umbraco-forms/developer/ajaxforms.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ Examples demonstrating how to handle a file upload and use reCAPTCHA fields are
544544

545545
## Working with the CMS Content Delivery API
546546

547-
The [Content Delivery API](https://docs.umbraco.com/umbraco-cms/v/12.latest/reference/content-delivery-api) provides headless capabilities within Umbraco by allowing you to retrieve content in JSON format.
547+
The [Content Delivery API](https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api) provides headless capabilities within Umbraco by allowing you to retrieve content in JSON format.
548548

549549
When retrieving content that contains an Umbraco Forms form picker, the output by default will consist of the ID of the selected form:
550550

@@ -570,7 +570,7 @@ When retrieving content that contains an Umbraco Forms form picker, the output b
570570
}
571571
```
572572

573-
With [expanded output](https://docs.umbraco.com/umbraco-cms/v/12.latest/reference/content-delivery-api#output-expansion) for the property, the full details of the form will be available. The structure and content of the form representation will be exactly the same as that provided by the Forms API itself.
573+
With [expanded output](https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api#output-expansion) for the property, the full details of the form will be available. The structure and content of the form representation will be exactly the same as that provided by the Forms API itself.
574574

575575
```json
576576
{
@@ -603,9 +603,9 @@ With [expanded output](https://docs.umbraco.com/umbraco-cms/v/12.latest/referenc
603603
For scenarios where you want to dynamically inject a form into a page, for example in a modal dialog, there is a dedicated JavaScript event and API method available to reinitialize Umbraco Forms on the newly added content.
604604

605605
```javascript
606-
// Execute a reinitialise on dynamic injections
607-
const reiniitializeEvent = new Event('umbracoFormsReinitialize');
608-
document.dispatchEvent(reiniitializeEvent);
606+
// Execute a reinitialize on dynamic injections
607+
const reinitializeEvent = new Event('umbracoFormsReinitialize');
608+
document.dispatchEvent(reinitializeEvent);
609609

610610
// Render a specific form via the API
611611
const injectedForm = document.getElementById('injected-umbraco-form');

16/umbraco-forms/developer/email-templates.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Below is an example of an email template from the `~/Views/Partials/Forms/Emails
3434
//@foreach (var color in Model.GetValues("checkboxField")){}
3535
3636

37-
//Images need to be absolute - so fetching domain to prefix with images
38-
var siteDomain = Context.Request.Scheme + "://" + Context.Request.Host;
39-
var assetUrl = siteDomain + "/App_Plugins/UmbracoForms/assets/Email-Example";
37+
//Images need to be absolute - so fetching domain to prefix with images
38+
var siteDomain = Context.Request.Scheme + "://" + Context.Request.Host;
39+
var assetUrl = siteDomain + "/App_Plugins/UmbracoForms/assets/Email-Example";
4040

4141
}
4242
<!DOCTYPE html>
@@ -226,7 +226,7 @@ Below is an example of an email template from the `~/Views/Partials/Forms/Emails
226226
if (value != null)
227227
{
228228
@(value is string strValue ? strValue.ApplyPrevalueCaptions(field.Id, Model.PrevalueMaps) : value)
229-
229+
230230
<br />
231231
}
232232
}

0 commit comments

Comments
 (0)