Hide Save & Continue button based on a fields conditional logic [RESOLVED]

Hi all,
I enabled conditional logic on a field (ID:3) based on whether the user is logged in or not and works just fine.

This is the guide I used : Gravity Forms Conditional Logic Based on User Login - Gravity Wiz

However, when I place the js code for hiding the Save&Continue button in the form (within a html field) and point it to field ID: 3 on my form (ID:2) the Save & Continue button still shows whether the field ID:3 is shown or hidden.

This is the code I placed in the HTML field:

This is the Gravity doc I used relating to hiding and showing the save and continue button based on a fields conditional logic. https://docs.gravityforms.com/gform_post_conditional_logic_field_action/

I can’t see why this would not work?

Is there a step I have missed?

UPDATE: So I got it to work.

What I needed to change was the gform ID.

I did a simple code inspect of the live page that contains the form and found the save&continue button ID and used that in the js code embedded in the form.

Instead of ‘gform_save_2_footer_link’ it now reads ‘gform_save_2_2_link’

The Save&Continue button now only shows if a user is logged in.

Hope that makes sense.

Please let me know if you can potential problems with this method moving forward.