SIERRA Posted October 21, 2020 Share Posted October 21, 2020 Hi We are having a checkbox as below. 1=Career Guidance 2=Admission Alert 4=Facilitation Classes We are having a requirement like to get id from title. For example: 'Career Guidance' will be passed in query string. $param_service=""; if (!empty($input->get->service)) $param_service = $input->get->service; // By using the value of $param_service we would like to get the id value that is 1 Please suggest how can we do that Thanks Link to comment Share on other sites More sharing options...
BillH Posted October 21, 2020 Share Posted October 21, 2020 If I understand you correctly, you'll find the answer here: https://processwire.com/docs/fields/select-options-fieldtype/ See the section titled "Getting the id property of an option when you only know the title". Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now