Home › Forums › Quform WordPress › Set default value for specific fields › Reply To: Set default value for specific fields
Many thanks, but I see only “no” in some cases:
1. For the screen size:
jQuery(function ($) {
$('.quform-field-1_32, .quform-field-2_35, .quform-field-5_36, .quform-field-6_38, .quform-field-7_39, .quform-field-8_40, .quform-field-9_36, .quform-field-10_39, .quform-field-11_39, .quform-field-12_40').val(
window.screen.width + ' x ' + window.screen.height
);
});
if (!$('.quform-field-1_32, .quform-field-2_35, .quform-field-5_36, .quform-field-6_38, .quform-field-7_39, .quform-field-8_40, .quform-field-9_36, .quform-field-10_39, .quform-field-11_39, .quform-field-12_40').val()) {
$('.quform-field-1_32, .quform-field-2_35, .quform-field-5_36, .quform-field-6_38, .quform-field-7_39, .quform-field-8_40, .quform-field-9_36, .quform-field-10_39, .quform-field-11_39, .quform-field-12_40').val('no');
}
2. For the {referring_url}:
if (!$('.quform-field-1_33, .quform-field-2_36').val()) {
$('.quform-field-1_33, .quform-field-2_36').val('no');
}
- This reply was modified 4 months, 4 weeks ago by vsexmogushiy.