---
title: nameFieldLastNameOptional
framework: intents
role: symbol
role_heading: Instance Property
path: intents/inrestaurantguestdisplaypreferences/namefieldlastnameoptional
---

# nameFieldLastNameOptional

A Boolean value indicating whether the reservation requires the guest’s last name.

## Declaration

```swift
var nameFieldLastNameOptional: Bool { get set }
```

## Discussion

Discussion The default value of this property is false, which prevents completion of the reservation if the last name field is empty.

## See Also

### Specifying Required Fields

- [nameFieldFirstNameOptional](intents/inrestaurantguestdisplaypreferences/namefieldfirstnameoptional.md)
