Problem With Radio Fields

Support General Problem With Radio Fields

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5274
    armandmorinarmandmorin
    Participant

    I recently started getting an error with it seems my radio fields. Almost all usage is displaying "Undefined index:" on the front end.

    Previously I had this working with no issues and have customers using it, but it wasn't until recently that I noticed this. After much searching and testing I see it is only happening with radio button fields.

    Any ideas on this?

    A little more information, I'm using this in cloneable group.

    #5275
    armandmorinarmandmorin
    Participant

    Just to be clear... the “Undefined index:” appears only if I HAVE NOT saved any data. After I save it, it seems work fine.

    But, if I pull up the front page where it is used the error appears unless I set the data in the backend and save. The it works as it should with no errors. So again, it appears only prior to setting the field and saving.

    #5278
    Anh TranAnh Tran
    Keymaster

    When you haven't saved any data, there's no actual data for you to get to show in the frontend. So, the code that get meta value should check for existence of the sub-field in the group before echoing it.

    #5290
    armandmorinarmandmorin
    Participant

    Thanks I got it now.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Problem With Radio Fields’ is closed to new replies.