[Resolved] show NUM keyboard 0-9, use bootstrap btn with edit-post-ink, user ctf filter
This thread is resolved. Here is a description of the problem and solution.
Problem: I have a phone custom field, and when entering a value I would like to show the number keyboard input instead of the alphanumeric keyboard input.
Solution: You can use custom code to modify the input type:
hi,
i need help with to follow questions:
1. in input field at mobile phone i want to popup NUM keyboard 0-9.
2. i have tryed to use this string the user name and last name don't show.
[toolset-edit-post-link layout_slug="report-vote"]<button class="btn-voter" type="button">[types field='first-name'][/types] [types field='last-name'][/types]</button>[/toolset-edit-post-link]
3. i have made custon user field "obs-polw-number" and i want to use it as a value in form filter.
[wpv-control-postmeta field="wpcf-poll-number" type="textfield" url_param="wpv-wpcf-poll-number" value="obs-polw-number"]
Please note that we have a single-issue-per-thread policy in the forums to make it easier for other users with similar problems to find solutions. I'll post some quick responses to your questions here, but if they need following-up I'll need to split them into separate threads.
1. You need to change the input type from text to phone on the input field in your form. We are going to update the Types fields to use more specific field types where relevant (e.g. email type for email field) but in the meantime the only way you can do this is by switching the input type with a little JavaScript once the form has been rendered.
For a Types field "should-be-number" you could add the following to your Form custom JS:
(Note how Types field names have a 'wpcf-' prefix.)
2. Shortcodes are not parsed inside the toolset-edit-post-link shortcode, what you are aiming to do is not possible. The only dynamic text available is from the %%POST_TITLE%% and %%POST_ID%% placeholders.
3. If you have a View that queries posts then you can only filter by custom post fields, not custom user fields. Custom search Views are only available for posts, not for users or taxonomies.
let say i have a field that gets #1 or #2 or #3 value.
how can i filter custom post by user?
i want to show to user A just post that have the value 1.
and to other user just the psot that have the value 2 and on...
please advice.
thanks rotem.
New threads created by Christian Cox and linked to this one are listed below: