showif with commands

22 views
Skip to first unread message

Tim Kaiser

unread,
Aug 23, 2022, 9:01:31 AMAug 23
to formr
Hi everyone,
I am trying to use a grepl query to check a text input for the correct format in showif. One input should consist of five digits and the other of one letter and six digits. Normally, I would solve this with a regular expression. However, it seems like it is not applied because the corresponding blocks are never shown. Is there a way to make this work? 

Thanks,
Tim

Ruben Arslan

unread,
Aug 23, 2022, 11:33:02 AMAug 23
to Tim Kaiser, formr
Yes, use JavaScript with //js_only to check a pattern on the same page, not R code. 

--
You received this message because you are subscribed to the Google Groups "formr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to formr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/formr/7ee81abd-abf4-4f64-812d-cc02be374aben%40googlegroups.com.

Tim Kaiser

unread,
Aug 25, 2022, 6:00:50 AMAug 25
to formr
Any examples online that I can use? i don't know much JavaScript unfortunately…
Reply all
Reply to author
Forward
0 new messages