2 Replies Latest reply: Jul 8, 2013 6:59 AM by mobra RSS

    Item plugin: Possible to alter the item value before submit ?

    mobra

      Using an Item plugin I can easily format an item value to whatever I want for display.

       

      However, how can I do the reverse: Take the user's input and apply some transformation to it, before / when it gets submitted?

       

      I could use an "After Submit Computation", but that means I have to duplicate the logic for each item. It would be nice to have this centralized in the plugin itself.

       

      Perhaps there could be some sort of "Pre-Process" callback function in the plugin definition, that received the actual value and could return a modified value ?

       

      Or perhaps this could be done as part of the validation callback, by adding a "modified_value" attribute to the t_page_item_validation_result record ?

       

      - Morten

       

      http://ora-00001.blogspot.com