• Resolved abelonger

    (@abelonger)


    I am using a select menu with pipes (https://contactform7.com/selectable-recipient-with-pipes/) and I am wondering if it possible to store the raw field instead of the value (maybe a trigger to do either/or?) My example:

    [select* player-jersey “Adult XS|58.00” “Adult SM|68.00”]

    I need the dollar amount in the value for a payment plugin, but I want the database to store the size.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Vsourz Digital

    (@vsourz1td)

    Hello @abelonger,

    The functionality that you are trying to do can be possible before saving the data to our database.

    We have a filter that will help you to modify the data before submitting to our database, you can the data according to your need and pass it back. Below is the mentioned filter that can help you to modify the data.

    apply_filters('vsz_cf7_posted_data', $contact_form->posted_data);

    We hope this helps you.

    Regards,
    Vsourz

    Plugin Author Vsourz Digital

    (@vsourz1td)

    Hello @abelonger,

    Hope the solution provided by us has helped you, and as it has been a long time since your reply we are closing this topic.

    If you have any queries then let us know, we will be there to help you.

    If you have found our plugin very helpful to you, kindly provide your ratings and experience with the plugin usage.

    We are open to new innovations that can be done with plugin. We will look forward with the suggestions provided.

    Regards,
    Vsourz

    originalpiratematerial

    (@originalpiratematerial)

    Hi @vsourz1td

    Please can you give a practical example of how to do this?

    Eg if I wanted a field called player-jersey to return the raw values with a pipe-delimited field, what would I enter in the function?

    Plugin Author Vsourz Digital

    (@vsourz1td)

    Hello @originalpiratematerial,

    Can you identify when do you require the data to be returned raw, mean to say before saving the data, or in the back office while viewing the data, etc.

    So that we can provide you the exact working practical example.

    Regards,
    Vsourz

    originalpiratematerial

    (@originalpiratematerial)

    Displayed in the ‘back office’.

    There’s two filters that would be really useful:

    1) fill the existing ‘back office’ field with the raw value
    2) fill a different (eg CF7 hidden field) in the ‘back office’ with the raw value

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Possible to store raw field?’ is closed to new replies.