Thanks for reaching out.
I tried defining all paramters "statically" in def getParameterInfo, but setting enabled=False to the ones i do not want to show up. Then in def updateParameters i tried to set enabled = True, and displayName = 'New_name' (displayName will be dependent on the data the user chooses). Only setting enabled = True works. Trying to change displayName in this way gives an AttributeError. Being able to change displayName would help avoid defining a lot of different parameters in getParameterInfo i think.
Something like this in updateParameters:
parameters.enabled = True
parameters.displayName = 'New_name'
Obviously not the way to do it. Not sure I understand how to use 'altered' in this case. Any pointers?