benlashley80
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characterI have not posted about commercial products here. all of my questions here are only about things that are available on the free version. but if i misunderstood im sorry.
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characteri tried it that way first and it showed error, and when i have a question regarding the commercial abilities i use the other forum. thank you for your help.
- This reply was modified 1 year, 2 months ago by benlashley80.
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characterhttps://votesplease.com/testvote/application/
page 5 enter no or leave blank should show “No Children” on page in the second block under “Childrens Names”
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characterThat isnt working either? yes works on that but not NO
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characterCan you help me correct this? if No or nothing is selected I want the calculated field to return “No Children”. The ‘yes’ selection works.
(function(){
if (fieldname89 == 'Yes') return '<span>' + fieldname57|r + '</span> ' + '<span>' + fieldname58|r + '</span> ' + '<span>' + fieldname59|r + '</span><br>';
else return 'No Children';
return '';
}
)()Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characterIs there a way to show conditional data in HTML? example. show fieldname2 if fieldname 1 radio button=“yes”? something like below?
<div data-show-if=“fieldname1:yes”><br><span data-cff-field=“fieldname2”></span></div>Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characterwell you are right, that does the exact same thing, only problem for me is I cant understand how it works. I sure wish I had your code knowledge.
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characteractually i just wrote this and it works
if (String(fieldname279).length==5){
'*'.repeat(String(fieldname279|r).length-1)+String(fieldname279|r).substr(-1)}
else if (String(fieldname279).length==6){'*'.repeat(String(fieldname279|r).length-2)+String(fieldname279|r).substr(-2)}
else if (String(fieldname279).length==7){'*'.repeat(String(fieldname279|r).length-3)+String(fieldname279|r).substr(-3)}
else '*'.repeat(String(fieldname279|r).length-4)+String(fieldname279|r).substr(-4)Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characterwhat can I be done if the string can have variable lengths like 5 to 10 numbers, if the string is only 5 then *’.repeat(String(fieldname279|r).length-4)+String(fieldname279|r).substr(-4) would only cover 1 number. is there a variable I can add so that if the string is only 5, then do this: exampl: 12345 = ****5?
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characterIm sorry, can you clarify this a a bit? I am using a single line text field for my zipcode. I put the expression /^\d{5}([-]?\d{4})?$/ in the field settings “validate against regular expression” and i have the html code in an html field:
<script>
fbuilderjQuery(document).one('showHideDepEvent', function(){
fbuilderjQuery
.validator
.addMethod(
"zipcode",
function(v,e)
{
return this.optional(e) || /^\d{5}([\-]?\d{4})?$/.test(v);
}
);
fbuilderjQuery.validator.messages['zipcode'] = 'The zipcode is invalid';
fbuilderjQuery('[id*="fieldname277_"]').addClass('zipcode');
});
</script>Im not sure what you’re saying? but I do not get the error message. aslo i want to force numbers only.
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characteri used the following code from your documentation.
<SCRIPT>
fbuilderjQuery(document).one('showHideDepEvent', function(){
fbuilderjQuery
.validator
.addMethod(
"zipcode",
function(v,e)
{
return this.optional(e) || /^\d{5}([\-]?\d{4})?$/.test(v);
}
);
fbuilderjQuery.validator.messages['zipcode'] = 'The zipcode is invalid';
fbuilderjQuery('[id*="fieldname259_"]').addClass('zipcode');
});
</SCRIPT>but it does not return the error message “The zipcode is invalid”
is there a way to make that message pop up?
my form is here: https://votesplease.com/testvote/application/
- This reply was modified 1 year, 2 months ago by benlashley80.
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characterI did try that with the SS#s on number field, but sadly yes, SS numbers can begin with 0, so this solution does not work. I will try the validate expression. thank you.
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characterI used a number field to prevent letter characters as SS number is digits only. why cant minimum and maximum length be controlled that way on number fields?
can I force numbers only on single line text field? Thanks!
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characterOne more thing on this topic. How can I make sure they enter the required number of characters?
SS must be 9 characters, how can prevent them from entering more or less characters?
thanks!
Forum: Plugins
In reply to: [Calculated Fields Form] replace numbers with special characteryour knowledge is amazing my friend. recommending this plugin to all my website friends!