That should work. Try to get the polarity correct. i.e. connect the wire which was connected to the centre pin of the PC connector to the end pin of the 3.5mm jack. Usually it won't matter but if the trigger uses a thyristor instead of a triac, it will only work one way round.