You can create a hidden input field in the form
<input type="hidden" name="mobileprovider" value="<The Id of the mobile
provider>"/>
James Rouzier
[email protected] :: +1.514.447.4918 (x115) :: http://www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence
(http://www.packetfence.org)
On 2016-06-07 5:39 AM, Torry, Andrew wrote:
We are running PF 6.0.3 (with mods) and have E-Mail based Registration
working the way we.
We have now moved on to enabling an SMS text based registration page.
As a JANET organisation we subscribe to the JISC Text service which
enables us to send an SMS text to ANY
mobile phone regardless of its provider.
Since this is the only SMS mobile provider we need we want to avoid
confusing the ‘Guest’ with an unnecessary
input field for ‘Mobile Provider’ in the registration page.
I have tried ‘modding’ the HTML code in the ‘signup.html’ template
file thus:-
+<!--
[% IF sms_carriers %]
[% out = form.get_field("mobileprovider").options(sms_carriers) %]
[% END %]
+à
Which does not seem to achieve anything.
I have also tried:-
[% FOREACH field IN fields.keys %]
[% NEXT IF field == 'aup' %]
+ [% NEXT IF field == 'mobileprovider' %]
<div class="input-container">
[% form.get_field(field).render | none %]
</div>
[% END %]
Which works in hiding the field but yields a ‘Field missing error
message’ which is not surprising.
How can we ‘hide’ the field in the form? Short of a software hack.
Andrew
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users