Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter hskokanek

    (@hskokanek)

    Thanks fro the answer Igor – it is not, however, answering the possibility to change the price based on time (like from 8pm to 8am for example = overnight). Thx

    Hia – not really – the Login is done through the page front end, so the previous still applies.

    Not criticising your PlugIn. It does, what it does. Just, if this is not the intention, it should be made obvious to the users, as most people will not even notice this security “flaw”.

    Thx Nicolas.

    the same thing I have asked. no response. what is the alternative – any ideas?

    https://www.ads-software.com/support/topic/hide-url-for-user-roles/

    Thread Starter hskokanek

    (@hskokanek)

    Thanks a lot for this. It is extremely helpful.

    One more thing I cannot figure out – how do you prevent the form from being sent/page reloaded upon hitting Enter/Return for example after filling in the first Number field.

    The calculates all in real time, so there is no need to submit the form and most of the user will press Enter/Return in order to move onto the next field, which, however, causes the entire form to reload (= poor user experience :/)

    Thanks – I am sure this will be somewhere in settings, but I cannot locate that.

    BR,
    H.

    Thread Starter hskokanek

    (@hskokanek)

    OK this is really cool!. In order to be able to style the values separately, I have split this using two Summary fields and the code:

    (function(){
        var result = ROUND(fieldname2*fieldname3), 
            text = jQuery('[id="'+getField(3).name+'"] option:selected').text();
    
        switch(text){
            case 'Ibuprofen': return 'maximálně v?ak 3 dávky denně po 8mi hodinách';
            case 'Nurofen': return 'maximálně v?ak 3 dávky denně po 8mi hodinách';
            case 'Panadol': return 'maximálně v?ak 4 dávky denně po 6ti hodinách';
            case 'Paralen': return 'maximálně v?ak 4 dávky denně po 6ti hodinách';
        }
    })()

    Though the ‘var result’ function is now unnecessary probably (but code will not work without it).

    Is it possible to build the fields to be next to each other (ie. as in two columns) in the form builder?

    BTW – if the custom CSS through the Customize Form Design is being used, it will not be applied if the form is placed into a PopUp.

    Thanks!! This is unheard of level of support!!

    Thread Starter hskokanek

    (@hskokanek)

    Thx, this would be my poor explanation ?? Apologies for that. That is probably why the function is not returning anything.

    The drop down front-end options (fieldname3) are ‘text values’, however, for the back-end calculation I am using a ‘numerical value’ assigned to each of the text options and then displaying the calculation result lets say in (fieldname1) Calculated field.

    Maybe it is actually better to display that using the Summary field (where fieldname1 is the Calculated field)

    (function(){
        fieldname1;
        switch(fieldname3){
            case 'Ibuprofen': return 'First text';
            case 'Nurofen': return 'Second text';
            case 'Panadol': return 'Third text';
            case 'Paralen': return 'Fourth text';
        }
    })()
    • This reply was modified 6 years ago by hskokanek.
    • This reply was modified 6 years ago by hskokanek.
    • This reply was modified 6 years ago by hskokanek.
    Thread Starter hskokanek

    (@hskokanek)

    Wow, thanks for the fast heads up!

    Actually I have tried the Currency field, but for some reason it is not displaying the currency symbol/description in the form on the live site (it is showing in the back-end, though)

    In the suggested equation – where in the following do I put the actual equation like PREC(fieldname2*fieldname3) to return the calculation? Apologies, if this is out of the scope of this forum. I couldnt get the suggested code to work. Thx

    (function(){
    switch(fieldname3){
    case Ibuprofen: return ‘First text’;
    case Nurofen: return ‘Second text’;
    case Panadol: return ‘Third text’;
    case Paralen: return ‘Fourth text’;
    }
    })()

    Thread Starter hskokanek

    (@hskokanek)

    also – can the “number input” field show units? (like “kg”)?

    Thx again!

Viewing 8 replies - 1 through 8 (of 8 total)