For different items combobox open different pages

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Ipaq
User
Posts: 3

For different items combobox open different pages

Post by Ipaq »

Is it possible to open different pages when I choice an item of combobox? Thanks

Ipa


mobhar
User
Posts: 11721

Post by mobhar »

Yes, it is possible.


arbei
User
Posts: 9381

Post by arbei »

You can add your script in "Client side event" of the "Edit Tag" of your combobox control, then call window.open() function.

For example:
{ // keys = event types, values = handler functions
"change": function(e) {
if (this.value == "XXX") {
window.open("<URL>");
}
}
}

Read help file topic: "Project Setup" -> "Field Setup" -> "Client side events (for Add/Copy/Edit/Search) " for more information.


Post Reply