Javascript check Transition

0
Is there a way for a javascript loaded via a custom form (see screenshot) to check the transition that's being executed? I want to do different things based on whether a field changes for a specific transition or on any other transition?

Accepted Answer

Tuesday, June 11 2019, 09:39 AM - #Permalink
0
These functions are in issuedetails-frame-iframe (tmtrack.dll). They're hard-coded with values for the context. We're running 11.3. This particular app is using "responsive" (vs "legacy") forms.

variable: ids_transition_name
"ESI/TESI"
variable: nTransitionID
546
function: GetTransitionInternalName()
returns "CHECK_RIDE.INTERVIEWING_CRITERIA"
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    Monday, June 10 2019, 07:16 PM - #Permalink
    0
    There is a form action that can be configured based on the transition, so could you use that and use different javascripts to set your fields. ie, if transition is x execute javascript 1, if transition is y execute javascript 2, etc, etc

    Or have I missed what you are trying to achieve
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 12 2019, 01:09 PM - #Permalink
    0
    David Sheaffe wrote:

    There is a form action that can be configured based on the transition, so could you use that and use different javascripts to set your fields. ie, if transition is x execute javascript 1, if transition is y execute javascript 2, etc, etc

    Or have I missed what you are trying to achieve


    That's sorta what I'm looking to do, except I'm not clear on how to execute a javascript function loaded to the form (i.e. not pasted into the form action).
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 12 2019, 03:03 PM - #Permalink
    0
    Paul Thompson wrote:

    These functions are in issuedetails-frame-iframe (tmtrack.dll). They're hard-coded with values for the context. We're running 11.3. This particular app is using "responsive" (vs "legacy") forms.

    variable: ids_transition_name
    "ESI/TESI"
    variable: nTransitionID
    546
    function: GetTransitionInternalName()
    returns "CHECK_RIDE.INTERVIEWING_CRITERIA"


    I ended up using the GetTransitionInternalName() which when using the legacy forms is available under the View (tmtrack.dll) frame. This function also appears to be available to any scripts loaded directly to the form, so I was able to leverage the function directly in my attached javascript.

    Thanks for the tip, I wish I knew a good way to look up some of these obscure functions/features available in the javascript. They should really add a reference to these inside of the Javascript developers help section in Composer.
    The reply is currently minimized Show
Your Reply

Recent Tweets