Return 'select' Label value

Support General Return 'select' Label valueResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22454
    Andrew_VincentAndrew_Vincent
    Participant

    Sorry if this is a basic question but I couldn't find an answer. I'm looking to return the Label of select field selection rather than its key. I'm adding that value to a string to eventually output to email content. Documentation says to use rwmb_the_value( $field_id ) but this prints to the browser rather than just returning the Label for use as a string.

    (* its being used on a front-end form but this question is not really front-end form specific)

    #22456
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please use the function rwmb_get_field_settings(), it helps you to get all settings of a field.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.