• Resolved graphicbob

    (@graphicbob)


    First, I love the plugin functionality.

    I was hoping that you could incorporate an “Import” feature that is similar to your Export Settings. I have many many conditional fields, and going through your standard method of adding new conditional rules is tedious. I have dozens and dozens of items in your dropdown menus when I want to add a new rule.

    I have also found myself going backwards at times. I have added a dozen rules, hit ‘save,’ and found my rules did not save. I then have to go back and redo the tedious task I mentioned above.

    I see the format that you use in your export settings. It would save me a substantial about of time if I could enter the conditional rules in this format instead of going through the UI with the dropdown menus.

    For instance, if I could enter the following in a text box, it would save me hours:

    if [handel-font] equals “Other” then show [handle-custom]
    if [handel-font-two] equals “Other” then show [handle-custom-two]
    if [handel-font-three] equals “Other” then show [handle-custom-three]
    etc…
    etc…

    I have probably 200 lines I could add like that and do it quickly using search/replace in a text editor. If there were a way I could import that short code instead of going through the dropdown and doing one rule at a time, it would be extremely beneficial and a massive time saver.

    I look in the WP database to see if there was an easy way for me to add rules that way, but it is confusing in there; not practical.

    Please let me know if you can/will add an Import feature.

    Thanks!
    Bob

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    Nope, not possible yet.

    I see 2 options though:

    1. If you have some developer skills you could edit the source code to accept import data here: https://github.com/pwkip/contact-form-7-conditional-fields

    2. If you are good with text editors like notepad++ or edipad pro (regex find and replace) you could convert the export to a format like this:

    <input type="text" name="wpcf7cf_options[101][if_field]" value="field-name">
    <input type="text" name="wpcf7cf_options[101][operator]" value="equals">
    <input type="text" name="wpcf7cf_options[101][if_value]" value="value">
    <input type="text" name="wpcf7cf_options[101][then_field]" value="group-name">
    <input type="text" name="wpcf7cf_options[102][if_field]" value="field-name-2">
    <input type="text" name="wpcf7cf_options[102][operator]" value="equals">
    <input type="text" name="wpcf7cf_options[102][if_value]" value="value2">
    <input type="text" name="wpcf7cf_options[102][then_field]" value="group-name-2">

    Then, either using firebug (firefox) or developer tools (chrome), visit the Conditional fields page, select the wpcf7cf-entries div, right click -> Edit as Html

    And paste in the above code. This should result in a bunch of input fields, being added to the page. Click Save and the conditions should be added.

    I realize this is a complete out of the box super hack, but it will work (I tested it) ?? Good luck!

    Thread Starter graphicbob

    (@graphicbob)

    Funny, Jules. I like the work around; very clever ??

    I will give it a try. If nothing else, it sounds like fun to try!

    Thanks!
    Bob

    Plugin Author Jules Colle

    (@jules-colle)

    Ok, so I actually just added the import feature to the next update. please give it a try ??

    Thread Starter graphicbob

    (@graphicbob)

    Wow, I’m very impressed! Thanks a million for working that in. In my opinion, this feature makes your plugin a more serious tool for developers. I will enjoy using regularly. [haven’t tried out ‘import’ yet, but on my way]

    Thanks for your responsiveness!
    Bob

    Plugin Author Jules Colle

    (@jules-colle)

    You’re welcome Bob,

    feel free to rate the plugin if you like it ??

    Thread Starter graphicbob

    (@graphicbob)

    Hey, Jules. I rated the plugin and wrote a positive review. I got a kick out of your warning on the import feature. That made me wonder something that I used to wonder often. Why doesn’t contact form 7 have a revision history like other post types in WordPress? Do you think you could add the functionality to this plugin or create another add-on that has ‘revision history’ so one could revert after ‘screwing up?’

    I find myself often copying all the contact form code (main form and emails) and pasting into TextWrangler ‘just in case’….That would be a good feature.

    Also, in my mind there is only one more thing left to do with the Conditional Fields plugin. Add jquery so that the hidden options can slide out. Perhaps there is a tab in the setting which allows you to chose an animation style. For instance, you could have it slide down with a background color of yellow that flashes off after the sliding is complete so that it is more obvious that the new form element has just appeared.

    I think that would be nice. The only think left for me to do is to donate. ??

    Thanks Jules!

    Plugin Author Jules Colle

    (@jules-colle)

    Thanks for all your kind words, Bob! I was going to say you could always duplicate the Contact Form if you feel like messing around with it. (CF7 has a built in duplicate button.) But then I just figured out that when you actually duplicate a form, the conditions aren’t duplicated with it. So I’m of to solve that first. The transitions thing is something other people have been asking for as well, I’ll bump it up a little more to the top of my TODO list ??

    Thread Starter graphicbob

    (@graphicbob)

    Thanks, Jules!

    I’ll stay tuned ??

    Bob

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Export Settings, Import Feature’ is closed to new replies.