We want to create a hyperlink in our CanvasApps that directs the user "Back" by calling the PowerFX Back() function but I cannnot find a way to do this.
I'm aware that I can call window.history.back() in a PCF but that's a browser-wide back, which will take the user out of the CanvasApp.
Right now we've coded it as a label with an onSelect but with the limitations we're unable to make it look like a hyperlink including the hover and mouse cursor. It also does not work the same way with Screen Readers as a regular hyperlink would, as screenreaders see them as buttons rather than links.
Ideally what i'd like is a way to interface with PowerFX in some way, eg.
HtmlText.Text = "<a href='App.Back()'>Go Back</a>"
Alternatively, is there is a way to call PowerFX functions from my PCF (perhaps via the context object) then that would also sort my issue.
Does anyone have any ideas?
Thanks.