• Resolved ddangerfield

    (@ddangerfield)


    Could this be achieve with CSV pro
    I need to fill 5 different field according to a specific name
    I have a csv with 6 column : name, value1, value2, value3,value4, value5
    Depending of the name, I want to populate my 5 fields, so I suppose this could be achieve with a drop down but my csv is 2000 records, so is there any way to have a search or a dropdown with 2 level (category and sub category) or any other method ?
    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @ddangerfield

    Yes you can, but for CSV files with many records could be necessary to use databases instead CSV files, to improve the form’s performance. I don’t say it is your case, I only say that in some conditions should be valued what is the best alternative.

    I’m sorry, but for additional questions about this subject, you should contact us directly on our website. We are not allowed to support any customers in these forums.

    For pro or commercial product support please contact us directly on our site. This includes any pre-sales topics as well.

    Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.

    Thank you.

    Thread Starter ddangerfield

    (@ddangerfield)

    It was more a presale question than a support question, just wanted to make sure it does the job before spending money

    Hello,

    I have a have the option of Autocompletion and Eval dynamically the equations switched off. There is a button to calculate the summary. If I will type to the summary container to “Add Css Layout Keywords” type hide. All will be hidden. I need after click to calculate button to unhide and calculate results. Can you please help me with the script?
    Thanks
    Jaromir

    Plugin Author codepeople

    (@codepeople)

    Hello @jmindl

    The process is very simple:

    1. Enter the special class name: hide
    through the “Add CSS Layout Keywords” attributes of calculated fields.

    2. Enter as the onclick event of the button, the piece of code:

    
    jQuery('.cff-calculated-field').removeClass('hide');
    

    and that’s all.
    Best regards.

    Thanks for very quick response, but I am using already you another nice plugin of CP blocks and there is already the following piece of code <!--BLOCK_ID_49--><button name="Calculate" type="button" class="calculate-button cervena" onclick="">Spo?ítat vysledky</button><script>fbuilderjQuery(document).on('click','#fbuilder button.calculate-button.cervena',function(){var $=fbuilderjQuery,f=$(this).closest('form'),i,j,s,t;if(f.length){i=f.attr('id');if((s=i.match(/_\d+$/))!=null&&(t=$.fbuilder['forms'][s])!=null){t=t.getItems();$.fbuilder['calculator'].defaultCalc('#'+i);for(j in t)if(t[j].ftype=='fsummary')t[j].update();}}});fbuilderjQuery(document).on('click','#fbuilder button[type="reset"].cervena',function(){var $=fbuilderjQuery,f=$(this).closest('form'),i,s;if(f.length){i=f.attr('id');if((s=i.match(/_\d+$/))!=null&&$.fbuilder['forms'][s]!=null){$.fbuilder['showHideDep']({'formIdentifier':s});$("#fieldlist"+s+" .pbreak:not(.pb0)").css("display","none").find(".field").addClass("ignorepb");$("#fieldlist"+s+" .pb0").css("display","block").find(".field").removeClass("ignorepb");}}});</script><!--END_BLOCK_ID_49-->

    How I can include to the current one of there is already onclick action?
    Thanks

    Plugin Author codepeople

    (@codepeople)

    Hello @jmindl

    Edit this piece of code: onclick="" as onclick="jQuery('.cff-calculated-field').removeClass('hide');"

    Best regards.

    Hi, unfortunately, this doesn’t work. I now temporary remove hide on the summary container.

    My code looks like this now
    <!--BLOCK_ID_49--><button name="Calculate" type="button" class="calculate-button cervena" onclick="jQuery('.cff-calculated-field').removeClass('hide');">Spo?ítat vysledky</button><script>fbuilderjQuery(document).on('click','#fbuilder button.calculate-button.cervena',function(){var $=fbuilderjQuery,f=$(this).closest('form'),i,j,s,t;if(f.length){i=f.attr('id');if((s=i.match(/_\d+$/))!=null&&(t=$.fbuilder['forms'][s])!=null){t=t.getItems();$.fbuilder['calculator'].defaultCalc('#'+i);for(j in t)if(t[j].ftype=='fsummary')t[j].update();}}});fbuilderjQuery(document).on('click','#fbuilder button[type="reset"].cervena',function(){var $=fbuilderjQuery,f=$(this).closest('form'),i,s;if(f.length){i=f.attr('id');if((s=i.match(/_\d+$/))!=null&&$.fbuilder['forms'][s]!=null){$.fbuilder['showHideDep']({'formIdentifier':s});$("#fieldlist"+s+" .pbreak:not(.pb0)").css("display","none").find(".field").addClass("ignorepb");$("#fieldlist"+s+" .pb0").css("display","block").find(".field").removeClass("ignorepb");}}});</script><!--END_BLOCK_ID_49-->

    Plugin Author codepeople

    (@codepeople)

    Hello @jmindl

    I’m sorry, I’m not sure what do you need exactly. If you want the calculated fields be hidden by default, and display them after pressing a button, you simply should follow the instructions in my previous entry.

    Best regards.

    Yes, you are right. I need to have a summary hidden by default, but your proposal of the change didn’t work for me.
    I open to supporting ticket.

    Plugin Author codepeople

    (@codepeople)

    Hello @jmindl

    I understand now what do you want. You want the calculated fields be always hidden, and as they were included into a summary field, you want to maintain the summary hidden until the button be pressed.

    If it is the case, please, follow the steps below:

    1. Configure the calculated fields as hidden, ticking the checkbox: “Hide Field From Public Page” in their settings.

    2. Enter the class name: hide into the attribute: “Add CSS Layout Keyword” of the “Summary” field that includes the calculated fields.

    3. Finally, replace the onclick event of the button with the following piece of code:

    
    jQuery('.cff-summary-field').removeClass('hide');
    

    and that’s all.
    Best regards.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘About CFF pro and CSV’ is closed to new replies.