That is what I thought at first that you wanted to do, and personally I don't think the widget is what you want. What do you really want to do? Normally checking an ID is a functionality of a LMS, and you are using a LMS. Why not use Javascript to get that information out of the LMS?
Lilybiri