Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Changing Checkbox to Radio Buttons

Featured Replies

Hi there,

I have some code which allows checkboxes to be selected in an array of found records. I want to change this to a set of 3 radio buttons called Yes, No and Unknown but cant work out how to modify the code:

Here's the code:

if ($_POST['proposal']) {

foreach ($_POST['proposal'] as $key => $value) {

$update = new FX($serverIP,$webCompanionPort,'FMPro7');

$update -> SetDBData('Training Calendar.fp7','Presenter_and_Course');

$update -> SetDBPassword('fmsadmin','fmsadmin');

$update -> AddDBParam('-recid', $key);

$update -> AddDBParam('Run_Again', 'Yes'); //I think this needs to be modified somehow as there are 3 possible results in the radio buttons - Yes, No and Unknown

$update -> FMEdit();

and further down:

<?php

$Courses=new FX($serverIP,$webCompanionPort,'FMPro7');

$Courses->SetDBData('Training Calendar.fp7','Presenter_and_Course');

$Courses->SetDBPassword('fmsadmin','fmsadmin');

$Courses->AddDBParam('Presenter_ID', $UN_CheckData['Presenter_ID'][0], 'eq');

$Courses->AddSortParam('Course_Name','ascend');

$CoursesResult=$Courses->FMFind();

$returnedCount=$CoursesResult['foundCount'];

foreach($CoursesResult['data'] as $key=>$CoursesData){ $recid = explode('.', $key); ?>

and the checkbox itself:

This is the proposed radio button code:

Any assistance gratefully received.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.