Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 5439 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

This topic is 5439 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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