Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

other radio button to keep at end of dynamic list of radio buttons

Hello

Assume radio buttons A,C, Z, Other, F (db gets data in this manner) we can easily sort but other should be at end of the list

The order is alphabetic but other to be end

Using Query Records

  • Ant
  • Cat
  • Frog
  • Z
  • Other

if we just do sort, we can get below which is wrong as per req

  • Ant
  • Cat
  • Frog
  • Other
  • Zebra

  Discussion posts and replies are publicly visible

  • 0
    Certified Lead Developer

    This completely depends on how you're currently getting your radio button options.  If it's just a manually-defined array of labels and values, for example, you would simply add an "other" option to the end. Or is it DB-backed? In that case you would simply need to append a label of "Other" to the end of the current list of labels, and decide on some value that would correspond to the "other" selection and not overlap with any of the existing ones.  If you'd like to post some sample code and/or screenshots, that would go a long way as far as helping us make some educated guesses as far as helping you figure out how to structure this correctly.

  • Thanks

    I did append and it works

    append(

    getrecord without 'Other' using filter{}

    ,

    getrecord ONLY with 'Other' using a!queryFilter in queryRecordType() and batchSize=1


    )

    I did this as we have language and some dynamic data, cannot hardcode Other with some key etc.

    Its all DB driven.