After upgrading from PF 5.7 to PF 6.2, I noticed the default mobile provider for SMS registration is "3 River Wireless." In version 5.7 the field was populated by "Select Your Provider" by default. This change introduced a problem for me. Some users aren't changing the provider. Since the default is valid, there is no error on submit. I changed the behavior back to the way it was in 5.7 by editing the following file.
Search in /usr/local/pf/html/captive-portal/lib/captiveportal/Form/Authentication.pm Find this: has_field 'fields[mobileprovider]' => (type => "Select", label => "Mobile provider", options_method => \&sms_carriers); Replace with this has_field 'fields[mobileprovider]' => (type => "Select", label => "Mobile provider", empty_select => 'Select your provider', options_method => \&sms_carriers); Can this change be added to future versions? -----Original Message----- From: Morgan, Joel P. Sent: Thursday, July 28, 2016 2:36 PM To: '[email protected]' <[email protected]> Subject: default SMS carrier In the SMS form, is it possible to populate the default SMS carrier with a blank entry. I get a lot of undeliverable emails to "3 River Wireless" which is first on the list. I would like to make the default blank, so if they forget to select their carrier, it will show them an error. ------------------------------------------------------------------------------ _______________________________________________ PacketFence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
