Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • james 37 posts 121 karma points c-trib
    Jun 28, 2017 @ 09:02

    Updating a field value when saving a form


    I am trying to update a hidden field on a form when a form is submitted. I have a custom dropdown list and want to copy the selected value to the hidden field. I'm trying to work out where the best place is to do this:

    • I've tried overriding the ProcessSubmittedValue method in the class where I've defined my custom dropdown. However, this doesn't give direct access to the complete set of submitted values. I don't think I can manipulate the hidden field using the API (RecordStorage) here either as the record hasn't been saved to the database yet.
    • I then tried using the RecordStorage.RecordInserting event. I could update the value here, but it looks like the event is triggered after the workflows are processed which is too late. Is there another event which is fired before the workflows are triggered?
    • There is also the ConvertToRecord method override in my custom dropdown class. What is the difference between this and ProcessSubmittedValue?

    Any ideas appreciated.

Please Sign in or register to post replies

Write your reply to: