Reply To: Set default value for specific fields

Home Forums Quform WordPress Set default value for specific fields Reply To: Set default value for specific fields

#36712
vsexmogushiy
Participant

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 2 weeks, 5 days ago by vsexmogushiy.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy