Calculated field will only display numbers and ignore letters
-
Hi,
I have a calculator that consists first of a radio select field (fieldname59) where the user can select “Menu 1 or 2” or “Menu 3”.
Then, depending on the url parameter “guests”, two other fields (fieldname52 and fieldname53) display a value that consists of letters, special characters, numbers, and spaces.
The third step would be for a new field (fieldname57) to show the value of fieldname52 or fieldname53 depending if the user chose “Menu 1 or 2” or “Menu 3” on fieldname59.
I used a calculated field with the following code for fieldname57:(function(){
var result = ”;
if(fieldname59==1) result = fieldname52;
if(fieldname59==3) result = fieldname53;
jQuery(‘.userselection’).html(result);
return result;
})()However, the calculated field will only display the numbers of fieldname52 and fieldname53 and ignore everything else.
What am I doing wrong?
The page I need help with: [log in to see the link]
- The topic ‘Calculated field will only display numbers and ignore letters’ is closed to new replies.