The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Pre-Parser module: Changing Entry Dependent upon Information - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16) +--- Thread: Pre-Parser module: Changing Entry Dependent upon Information (/showthread.php?tid=475) |
Pre-Parser module: Changing Entry Dependent upon Information - axel - Jan 31st, 2010 Alright, here's my delima. A submission is sent in from a form that handles Registering Attnedees for an event. They select the Badge type they want (3-day, 1-day, so on and so on). Code: <select name="amount" style="width: 365px"> And the amount is what sets the Badge in Form Tools because that amount is passed to PayPal to handle the purchasing. However, Prices have now changed and now I have to change the option group to understand the changes. But the attendees who purchased it at the first price now are invalid if I change the Option Group. So here's my question: What do I need to do in the Pre-Praiser to get the submission change a Price to a Text line. Value Input = 35 Value Output = 3dayadult I can manage to change the Value Input when prices change, but does anyone know the solution to achieving this? RE: Changing Entry Dependent upon Information - axel - Jan 31st, 2010 Eh. Like usual, Javascript saved the day. Never mind! Just if your interested: I added this script to my page Code: <script type="text/javascript"> And modified my dropdown box to help it and added a new field. Code: <select name="badgetype" style="width: 365px" onchange="setPrice(this);"> |