Hyperlink with last form entry encounterId

Hi guys, is it possible to create a hyperlink on one form and pass it the last encounterId of another form entry?

Which formentry technology are you using? Is it this one? https://wiki.openmrs.org/display/docs/HTML+Form+Entry+Module

@ganguyo if your using htmlform entry tech as @dkayiwa had inquired then u might have a look at this https://wiki.openmrs.org/display/docs/HTML+Form+Entry+Module+Reference#HTMLFormEntryModuleReference-LinkingtoPages.1