- This topic has 0 replies, 1 voice, and was last updated 5 years, 3 months ago by
andersonorui.
Viewing 0 reply threads
-
AuthorPosts
-
-
October 17, 2016 at 1:32 pm #7439
andersonoruiParticipantHi,
I am creating a quiz and I need to use the “same” radio button in the answers, so I can set the correct answer.
This is the code I am using:
piklist('field', array( 'type' => 'group', 'field' => 'answer', 'label' => 'Answers', 'add_more' => true, 'fields' => array( array( 'type' => 'radio', 'columns' => 2, 'choices' => array( 'true' => 'Correct' ) ), array( 'type' => 'select', 'field' => 'answer_format', 'columns' => 2, 'choices' => array( 'text' => 'Text', 'file' => 'Image', 'url' => 'Video' ) ), array( 'type' => 'text', 'field' => 'answer_text', 'columns' => 6, 'conditions' => array( array( 'field' => 'answer:answer_format', 'value' => 'text' ) ) ), array( 'type' => 'file', 'field' => 'answer_file', 'columns' => 6, 'conditions' => array( array( 'field' => 'answer:answer_format', 'value' => 'file' ) ) ), array( 'type' => 'url', 'field' => 'answer_url', 'columns' => 6, 'conditions' => array( array( 'field' => 'answer:answer_format', 'value' => 'url' ) ) ) ) ));Attachments:
You must be logged in to view attached files.
-
-
AuthorPosts
Viewing 0 reply threads
- You must be logged in to reply to this topic.