Hi Roman,
I have since found a way to get to the document data.
I do have access to nodeid (hidden field on form) via my available fields.
If I use the following I get the field value back
Documents["/Learn-more/More-from-us/Seminars/" + {Documents.Where("nodeID = 582")[0].NodeAlias}].Fields.SeminarTime
but when inserting the node id using the available fields as below, it generates an error.
Documents["/Learn-more/More-from-us/Seminars/" + {Documents.Where("nodeID = " {$$value:SeminarID$$})[0].NodeAlias}].Fields.SeminarTime
`Error while evaluating expression: Documents["/Learn-more/More-from-us/Seminars/" + {Documents.Where("nodeID = " {$value:SeminarID$})[0].NodeAlias}].Fields.SeminarTime |(identity)GlobalAdministrator|(hash)3699787e6539a17f8d99b89e5f32f7db14064e31e3a84060775e48af8b25ece2`
CMS.MacroEngine.LexicalAnalysisException: Lexical analysis of the expression failed. Error near:
ents.Where("nodeID = " {$->>value:SeminarID$})[0].Nod
at CMS.MacroEngine.MacroElement.ParseNext(String expression, Int32& index, Boolean supressError, Boolean isParamValue)
at CMS.MacroEngine.MacroElement.ParseExpression(String expression, Boolean supressError)
at CMS.MacroEngine.MacroExpression.ParseExpression(String expression, Boolean supressError)
at CMS.MacroEngine.MacroResolver.ResolveMacroExpression(ResolveExpressionSettings settings)
But when inserting the available field value the following error is generated.
Error while evaluating expression: Documents["/Learn-more/More-from-us/Seminars/" + {Documents.Where("nodeID = " {$value:SeminarID$})[0].NodeAlias}].Fields.SeminarTime |(identity)GlobalAdministrator|(hash)3699787e6539a17f8d99b89e5f32f7db14064e31e3a84060775e48af8b25ece2
CMS.MacroEngine.LexicalAnalysisException: Lexical analysis of the expression failed. Error near:
ents.Where("nodeID = " {$->>value:SeminarID$})[0].Nod
at CMS.MacroEngine.MacroElement.ParseNext(String expression, Int32& index, Boolean supressError, Boolean isParamValue)
at CMS.MacroEngine.MacroElement.ParseExpression(String expression, Boolean supressError)
at CMS.MacroEngine.MacroExpression.ParseExpression(String expression, Boolean supressError)
at CMS.MacroEngine.MacroResolver.ResolveMacroExpression(ResolveExpressionSettings settings)
Am I doing somthing wrong or is there another way to get to the value, maybe using CurrentDocument?
Thank for the help.