Forum Discussion

MarcusBiady-7a0's avatar
MarcusBiady-7a0
Community Member
2 years ago

Struggling with a variable

Hi everyone, I am uploading two examples. One is a sample of a real course interaction that has been redacted called ("Company Policies_Test Interaction"), and one I have mocked up ("Human Resources Policies_TEST.

Essentially with Company Policies_Test Interaction, there is nothing wrong with this file, as you will see the learner click a link (in this instance to go to google.com) and click a checkbox whereby the layer requires them to enter text for the state of the submit button to be normal from disabled.

My issue is that my contract employer is now wanting - (for this you'll need to see the Human Resources Policies_TEST.story) a title only, for each policy to be visible on the base layer and not a link.

Within each of the layers, they want the hyperlink included where learners also enter text into Textentry1. I have created a new variable ("CloseLayerSP") and had a go at making this work, I noticed that the Submit button is remaining disabled after the state of Text box 3 is visited (as I inputted), and after the variable changes when the variable (FirstLastName) is not equal to blank in the textentry1. 

I want to be able to make this update for them but can't seem to make it work (I hope I was clear with that explanation). Really need some advise.

 

  • SandeepGadam's avatar
    SandeepGadam
    Community Member

    Hello Marcus, I reviewed your file and after modifying your existing trigger I was able to get the submit button work. So on the "SPEmployeeHandbook" layer change the trigger similar to below:

    Modify your trigger to
    Set state of Button 1- Submit to Normal
    When CloseLayerSP changes
    If CloseLayerSP = value True

    This worked fine at my end. Let me know if you need any further help.

  • I noticed that the submit button does work when I complete just the one of those activities...

    I'm wanting to get it to only go normal if both Text box 3 and the text1 field lose focus ... hope I haven't misunderstood you?

  • Hi Marcus, 

    I wanted to chime in and let you know that I see that you're working with my colleague John Carlo on this issue within a support case. You're in great hands!

    I'll share the most recent discussion in this thread with John Carlo so we can continue the conversation over in your support case. 

    Have a great start to your week! 

    • SandeepGadam's avatar
      SandeepGadam
      Community Member

      Hi Marcus, I'm glad that were able to find a solution. Have a good day!!