Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am allowing 2 submission per user every 24 hours and I want to inform the user how many time is remaining before the next submission using: [webform_submission:interval:user:wait]
But the token is not printed in the output:
Comment | File | Size | Author |
---|---|---|---|
#6 | 3131667-6.patch | 751 bytes | jrockowitz |
| |||
#5 | test-result-2.png | 11.35 KB | C.E.A |
#5 | test-result-1.png | 11.04 KB | C.E.A |
#4 | webform.webform.test_form_limit_wait.yml | 4.9 KB | jrockowitz |
Output.png | 6.87 KB | C.E.A |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe attached test webform works as expected.
Please provide the steps and/or an example webform which can be used to reproduce this issue.
Comment #3
C.E.A CreditAttribution: C.E.A commentedThe administrator can always see the value of the
[webform_submission:interval:user:wait]
token but for other anonymous and authenticated users on the site, the permissionView any webform submission
must be given to any role in order for the token value to be displayed for the user.However, this permission will end up showing a new tab "Results" on the webform page which will allow the current user to see a list of all and own submissions... and this does not really make any sense !
Why in order to display for the user how many time is remaining before the next submission, I will be obliged to give him access to the list of all and own submissions.
is it possible to show the token value for any role without giving them this permission ?
It is really important and logic feature !!
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe attached example webform works for anonymous users
Comment #5
C.E.A CreditAttribution: C.E.A commentedTested the attached webform with anonymous user and got the below results:
However, when tested the attached webform with authenticated user (Not Administrator), i got the below results:
Kindly note that all permissions for Webform, Webform Node, Webform Submission Log, Webform Templates are unchecked for all roles including anonymous and authenticated roles (Excluding Administrator Role of course)
Thank you,
Comment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedPlease review the attached patch.
Comment #7
C.E.A CreditAttribution: C.E.A commentedPatch #6 is working as expected,
Thank you for your help !
Comment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented