Submitted by Robert Roose
on Thu, 10/28/2021 - 19:54
Good question! In most cases using the [current-page:title] token should be sufficient.
But in the use case I described the client wanted a select element where the default option would be the node (destination) that the user was viewing. Visitors can still select another destination if they please.
So if you only need to use a text field or a disabled/hidden input field you can use the [current-page:title] token. If you want to use a select element, referencing nodes already available in your website, you can use the solution as I described in this blog post.
Good question! In most cases using the [current-page:title] token should be sufficient.
But in the use case I described the client wanted a select element where the default option would be the node (destination) that the user was viewing. Visitors can still select another destination if they please.
So if you only need to use a text field or a disabled/hidden input field you can use the [current-page:title] token. If you want to use a select element, referencing nodes already available in your website, you can use the solution as I described in this blog post.