בוטלה

התפקיד שלך נדחה! סיבה:

Formidable Pro form customisation

General information for the website: Quiz Description of requirements/features: Hi, I'm looking for a quote for a relatively straightforward Formidable Pro/Wordpress customisation. I have a quiz form with one text field (persons name, the FIRST field), one hidden number field (quiz score, the LAST field) and 19 radio button fields (the question fields, all between the first and last fields). I am currently using two functions to 1) randomise the quiz questions and 2) reorder the answer options. However, both functions need amending to produce the results I want. Here is the function that shuffles the question order, but as you can see it shuffles ALL the questions, and I don't want it shuffling the text field (the first field in the form). I'm aware what needs doing in principle - copy the text field element to a holding array, delete the text field from $fields, shuffle $fields, then merge the text field back into $fields in the desired position - but don't have the coding knowledge to complete it. Also, the form is on a single page, not multi-page, so perhaps the frm_get_paged_fields filter isn't the correct one to use? // randomise form fields Formidable Pro add_filter('frm_get_paged_fields', 'get_extra_form_fields', 10, 3); function get_extra_form_fields($fields, $form_id, $error=false){ if($form_id == 12){ //change 12 to the id of the form to change shuffle($fields); } return $fields; } This next function changes the order of the answers for any single field, but I'd like it to loop through for all the radio button fields and change the order of them all, rather than just a single field. Again, in principle I know it just requires a simple loop, but I couldn't get it to work. // change order of multiple choice answers in formidable pro quiz form add_filter('frm_setup_new_fields_vars', 'frm_reorder_options', 30, 2); function frm_reorder_options($values, $field){ if ( $field->id == 141 ) {//Replace 141 with the ID of your field asort($values['options']); // sort the values here } return $values; } Can you help please? Thanks, Matt Extra notes:

מידע נוסף

עבודה: #7372

2380 יום 0שעות 22דק

תקציב:

$71

סוג העבודה:

עבודה חד פעמית

שעות עבודה:

00:00 - 08:00

יכולות נדרשות
פורסם על ידי

נייד:

הלקוח בחר לא לחשוף את הטלפון

הגש הצעה

כדי להגיש בקשה לתפקיד זה עליך להתחבר תחילה / להירשם.

לחצו כאן כדי ללמוד איך זה עובד

שתפו א/ו והזמינו לעבודה זאת.
שאלות נפוצות

לחצו כאן כדי ללמוד כיצד תשתית STARTAJOB עובדת?

כתוב אז את "כתוב הערה או הודעה ללקוח"

כבר יש לך את העלות המשוערת ואת הזמן כדי להשלים את העבודה אתה בשדות "זמן ביצוע" ו "תשלום המבוקש" או להשאיר אותם ריקים ניתן לשנות מאוחר יותר.

אם אתה יכול לבצע את העבודה, הגש ההצעה שלך בטופס מטה או אם יש לך שאלות נוספות, אתה יכול לכתוב אותם בשדה הערות שלך ולהשאיר את השדות "השכר הרצוי" ו"הושלם בתוך" ריקים. ניתן יהיה לקבוע אותם מאוחר יותר.