Change Button Visibility After GetNew in Application Studio

I am converting a customization from classic to Kinetic. I am trying to enable an “Next Part Number” function on the part entry screen. I have a working function that I can call from a button. Now I want to set the button so it is only visible after the user hits the + button to create a new part record.

I have tried and event to set the Hidden property on the button, but I am not sure on the syntax for the property parameters. This is what I have tried:
image
image
image

Any suggestions or links to the right place in the documentation for this?

I ended up using this method from @hmwillett to enable and disable the button rather that change it’s visibility

  1. Bind the button to a field (doesn’t have to be a real DB column)

  2. Create rule to disable button based on TransView field

  3. Set TransView field on FormLoad to disable button
    image
    image

  4. Set TransView field after GetNewPart to enable button
    image
    image

  5. Set TransView field to disable the button again
    image
    image

Seems to work.

Any feedback on this appreciated.

I found the way to make the button appear and disappear. Instead of using the “Disable” action in the rule, I used the “SettingStyle” Action - which has an invisible option:
image

Seems pretty obvious now that I’ve found it.