rphrus
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] HH:MM:SS total to per week and per dayHi,
Let’s scratch that. How about how do you isolate the hours to just hour and minute, for example 1.25 hours to 1 hour and 15 minutes, by way of the code.
Thank you
Forum: Plugins
In reply to: [Calculated Fields Form] HH:MM:SS total to per week and per dayHi,
I am sorry I wasn’t clear. It’s not the difference between the dates. What I meant was, for example, the user will choose the month like December 2023 (not choosing the date), in which there’s 31 days in December, so the calculator will calculate the Total Hours Authorized (in hours and minutes )divided by 31. For February, there’s 28 days, so it will be Total Hours Authorized (in hours and minutes) divided by 28 but if it’s a leap year then for February it should be divided by 29, etc. which will give hours, minutes, and seconds per day. If it’s difficult to implement with picking the month and year on the calendar, then would you consider do it manually by having the user to figure this out with how many days for the month in question and take the Total Hours Authorized and divided by the number of days for that month?
For hours per week, it’s just Total Hours Authorized divided by 7 to get hours, minutes and seconds per week.
Thank you
- This reply was modified 11 months, 4 weeks ago by rphrus.
Forum: Plugins
In reply to: [Calculated Fields Form] If thenThank you!
- This reply was modified 1 year ago by rphrus.
Forum: Plugins
In reply to: [Calculated Fields Form] If thenThank you for taking the time to answer my question. My fieldname1 is an input number and fieldname2 is a calculated value field. So, how would this work?
Forum: Plugins
In reply to: [Calculated Fields Form] If thenHi,
How can I prevent the calculation from displaying the result when I have not entered a number on fieldname1 yet?
Thank you
- This reply was modified 1 year ago by rphrus.
Forum: Plugins
In reply to: [Calculated Fields Form] multiplication by a factor within a range of numbersGreat!
Thank you very much.Forum: Plugins
In reply to: [Calculated Fields Form] multiplication by a factor within a range of numbersThank you so much. The only problem I have is the calculated field always display 0 when I did not enter anything in the fieldname1 yet. I want it blank before I start entering in the number in the fieldname1.
I have this shortcode from another plugin [speaker-mute] … [/speaker-mute]. So if I create using shortcoder would it be like [sc name=”myshortcode”] and close this shortcode with [/sc name=”myshortcode”], so it will be like [sc name=”myshortcode”]content here[/sc name=”myshortcode”]?
- This reply was modified 4 years, 2 months ago by rphrus.
Forum: Plugins
In reply to: [Calculated Fields Form] weekday functionLet’s put an example; field1 date picker, field2 enter number, field3 result of field1+field2. How would you have it shows in the result with in Day of week, month, day, year?
Thanks
Forum: Plugins
In reply to: [Calculated Fields Form] html content field to display resultresolved. Thanks.
Forum: Plugins
In reply to: [Calculated Fields Form] field label for html contentThe label shows underneath the result in the html content. How do you make it show on top? Thanks again.
opps, got it.Thanks
- This reply was modified 4 years, 3 months ago by rphrus.
Forum: Plugins
In reply to: [Calculated Fields Form] result got cut off when viewing on mobile phoneWorks!
Thank you.Forum: Plugins
In reply to: [Calculated Fields Form] result got cut off when viewing on mobile phoneMy fieldname2 is enter weight in pounds.
Here’s my equation:
IF(AND(fieldname2),(function(){
var f2 = fieldname2;
if(f2<11) return ‘no dose indicated for this weight’;
if(f2>=11&&f2<=17.6) return ‘atovaquone 31.25mg/proguanil 12.5mg (one-half of pediatric tablet).’;
if(f2>17.6&&f2<24.2) return ‘atovaquone 46.87mg/proquanil 18.75mg (three-quarters of pediatric tablet).’;
if(f2>=24.2&&f2<46.2) return ‘atovaquone 62.5mg/proquanil 25mg (one pediatric tablet).’;
if(f2>=46.2&&f2<68.2) return ‘atovaquone 125mg/proquanil 50mg (one-half of adult tablet).’;
if(f2>=68.2&&f2<=88) return ‘atovaquone 187.5mg/proquanil 75mg (three-quarters of adult tablet).’;
if(f2>88) return ‘atovaquone 250mg/proquanil 100mg (1 adult tablet).’;
})(),”)How can I edit this equation as you stated on # 2 above?
Thanks@kellscolin2020 I tried to put it in my theme’s function.php and this is what I got.
Warning: Use of undefined constant ??sgo_javascript_combine_excluded_inline_content?? – assumed ‘??sgo_javascript_combine_excluded_inline_content??’ (this will throw an Error in a future version of PHP) in /home/…Warning: Use of undefined constant ??js_combine_exclude_inline_script?? – assumed ‘??js_combine_exclude_inline_script??’ (this will throw an Error in a future version of PHP) in /home/…
Do I have to leave ‘theChampSiteUrl’ as is? or should I modify it? Thanks.