Skip to content

Using parameters with filters #1287

Answered by rangav
Elitek6 asked this question in Q&A
Aug 21, 2023 · 6 comments · 7 replies
Discussion options

You must be logged in to vote

Example Below

Filter Code:

function randonId(input, prefix) {
    let randonVar = prefix + Math.random().toString(36).substring(7);
    console.log("randonVar", prefix, randonVar);
    tc.setVar("completeID", randonVar);
    return randonVar;
}

module.exports = [randonId]

Update the filter code as needed for your use-case

Replies: 6 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@Elitek6
Comment options

@rangav
Comment options

Comment options

You must be logged in to vote
2 replies
@Elitek6
Comment options

@rangav
Comment options

Answer selected by Elitek6
Comment options

You must be logged in to vote
1 reply
@rangav
Comment options

Comment options

You must be logged in to vote
1 reply
@rangav
Comment options

Comment options

You must be logged in to vote
1 reply
@rangav
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants