I just stumbled over a problem regarding the forms api.

fields with a suffix or a prefixes look just wired:

i guess that jquery mobile don't respect this drupal standard. or does it?

maybe it should look like this:

any suggestions?

CommentFileSizeAuthor
suffixes_proposal.png10 KBloominade
suffixes.png9.95 KBloominade

Comments

jasonsavino’s picture

Assigned: Unassigned » jasonsavino
Status: Active » Postponed

I will look into how this might work. It may end up needing to be aded to the module. For now, if you would like, check out the includes/form.inc file (line 411).
you could add this around line 430: $element['#attributes']['placeholder'] = $element['#field_prefix'];. You could also do the same for the field's title: $element['#attributes']['placeholder'] = $element['#title'];